Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Program Options: -conf <conf file> #46

Closed
cvvergara opened this issue Apr 29, 2015 · 8 comments
Closed

Program Options: -conf <conf file> #46

cvvergara opened this issue Apr 29, 2015 · 8 comments

Comments

@cvvergara
Copy link
Member

-conf <conf file>
specifics: required
Component of issue: #43

@cvvergara
Copy link
Member Author

-c, --conf
or only
--conf

@cvvergara
Copy link
Member Author

When dont want the default

osm2pgrouting -f small.osm -d inputdatatest -s 0 --conf mymapconfig.xml 
Execution starts at: Fri Dec  4 10:27:25 2015

***************************************************
           COMMAND LINE CONFIGURATION             *
***************************************************
Filename = small.osm
Configuration file = mymapconfig.xml

if no -c --conf is placed grabs a hard coded configuration file that its not documented in the help

osm2pgrouting -f small.osm -d inputdatatest -s 0 
Execution starts at: Fri Dec  4 10:30:21 2015

***************************************************
           COMMAND LINE CONFIGURATION             *
***************************************************
Filename = small.osm
Configuration file = /usr/share/osm2pgrouting/mapconfig.xml

@cvvergara cvvergara reopened this Dec 4, 2015
@cvvergara
Copy link
Member Author

When I am not in the folder:

osm2pgrouting -f data/small.osm -d inputdatatest -s 0 -c data/mymapconfig.xml 
Execution starts at: Fri Dec  4 10:35:13 2015

***************************************************
           COMMAND LINE CONFIGURATION             *
***************************************************
Filename = data/small.osm
Configuration file = data/mymapconfig.xml

@cvvergara
Copy link
Member Author

@robe2
Can you make similar tests on windows and post them, please.

@robe2
Copy link
Member

robe2 commented Dec 4, 2015

C:\ming64gcc48\projects\osm2pgrouting\rel>osm2pgrouting -f C:\ming64gcc48\projects\osm2pgrouting\rel\\data\small.osm -d pgr -p 5444 -s 0  -c data\mymapconfig.xml
Execution starts at: Fri Dec 04 11:40:31 2015

***************************************************
           COMMAND LINE CONFIGURATION             *
***************************************************
Filename = C:\ming64gcc48\projects\osm2pgrouting\rel\\data\small.osm
Configuration file = data\mymapconfig.xml
host = localhost
db_port = 5444
dbname = pgr
user = postgres
passwd =
schema=
prefix =
suffix =
Don't clean tables
Include node table
***************************************************
Connecting to the database
host=localhost user=postgres dbname=pgr port=5444
connection success
Opening configuration file: data\mymapconfig.xml
    Parsing configuration

Opening data file: C:\ming64gcc48\projects\osm2pgrouting\rel\\data\small.osm
    Parsing data

Spliting ways

Creating tables...
Creating 'ways_vertices_pgr': OK
   Adding Geometry:  Exists: 'ways': OK
 Exists: 'relations_ways': OK
 Exists: 'osm_nodes': OK
 Exists: 'osm_relations': OK
 Exists: 'osm_way_tags': OK
 Exists: 'osm_way_types': OK
 Exists: 'osm_way_classes': OK
Adding auxiliary tables to database...
    Processing 70498 nodes:  Inserted:
    Processing 4 way types:  Inserted 0 way types
    Processing way's classes:  Inserted 0 way's classes
    Processing way's relations:  Inserted: 0way's relations
    Processing way's tags:  Inserted 0 way's tags
    Processing 3381 ways:
Vertices inserted     Ways inserted: 3381
Creating topology...
#########################
size of streets: 1802
size of splitted ways : 3381
Execution started at: Fri Dec 04 11:40:31 2015
Execution ended at:   Fri Dec 04 11:40:32 2015
Elapsed time: 1.067 Seconds.
User CPU time: -> 1.067 seconds
#########################

@robe2
Copy link
Member

robe2 commented Dec 4, 2015

If I don't specify -c I get this

osm2pgrouting -f C:\ming64gcc48\projects\osm2pgrouting\rel\\data\small.osm -d pgr -p 5444 -s 0
Execution starts at: Fri Dec 04 11:42:15 2015

***************************************************
           COMMAND LINE CONFIGURATION             *
***************************************************
Filename = C:\ming64gcc48\projects\osm2pgrouting\rel\\data\small.osm
Configuration file = /usr/share/osm2pgrouting/mapconfig.xml
host = localhost
db_port = 5444
dbname = pgr
user = postgres
passwd =
schema=
prefix =
suffix =
Don't clean tables
Include node table
***************************************************
Connecting to the database
host=localhost user=postgres dbname=pgr port=5444
connection success
Opening configuration file: /usr/share/osm2pgrouting/mapconfig.xml
    Parsing configuration

@robe2
Copy link
Member

robe2 commented Dec 4, 2015

Instructions for windows users in wiki - https://github.com/pgRouting/osm2pgrouting/wiki/Configuration-File-In-Windows

@cvvergara
Copy link
Member Author

So, that now things are clear lets close the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants