cvvergara / osm2pgrouting

Import tool for OpenStreetMap data to pgRouting database
http://www.pgrouting.org
GNU General Public License v2.0
0 stars 0 forks source link

json configuration #14

Open cvvergara opened 1 year ago

cvvergara commented 1 year ago

Suppose the following configuration

{
  "schema": "pgrdata",                  
  "index" : "id",
  "geom" : "geom"
  "table" : "configuration",
  "configuration": [
    { "tag" : "highway",    .... },
    { "tag" : "footway",    .... },
    ....
  ]
}
Where: key example default comment command line
schema "pgrdata" no prefix command line overrides value from file --schema myschema
index "gid" id identifier column name on all tables no
geom "the_geom" geom geometry column name on all tables no
table "mycconfig" configuration table name for the configuration no
configuration array of OSM tag configurations NA can not be empty no
Maybe also this can be done key value default comment command line
database "dbname" (value from command line) command line overrides value from file -d [ --dbname ] arg
host "127.0.0.1" "localhost" command line overrides value from file -h [ --host ] arg
port 5433 5432 command line overrides value from file -p [ --port ] arg
cvvergara commented 1 year ago

tag configuration

Minimal configuration

all table names are:

{ "tag" : "highway" }
cvvergara commented 1 year ago
"processing" : "positional",

implies id : value is ignored