pgRouting / osm2pgrouting

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

Fixed print progress info and Prevent unused flags (addways and addrelations) from appearing in "Command Line Configuration" #193

Closed cayetanobv closed 6 years ago

cayetanobv commented 6 years ago

Hi,

1 - Fixed print progress info in print_progress() function.

2 - To prevent unused flags (addways and addrelations) from appearing in "Command Line Configuration" print info, I included it in preprocessor directivein process_command_line() function. If you use addnodes flag osm_ways and osm_relations are populated but in print info appears a contradictory message. You can see "Command Line Configuration" print info before and after:

Before:

***************************************************
           COMMAND LINE CONFIGURATION             *
***************************************************
Filename = /tmp/output_data.osm
Configuration file = /usr/src/app/itinera/mapconfig/mapconfig.xml
host = localhost
port = 5432
dbname = routing
username = routing_admin
password = routing
schema= bcn_tags_demo3
prefix = 
suffix = 
Don't Install postgis if not found
Drop tables
Don't create indexes
Add OSM nodes
Don't add OSM ways
Don't add OSM relations
***************************************************

After:

***************************************************
           COMMAND LINE CONFIGURATION             *
***************************************************
Filename = /tmp/output_data.osm
Configuration file = /usr/src/app/itinera/mapconfig/mapconfig.xml
host = localhost
port = 5432
dbname = routing
username = routing_admin
password = routing
schema= bcn_tags_demo3
prefix = 
suffix = 
Don't Install postgis if not found
Drop tables
Don't create indexes
Add OSM nodes
***************************************************

Thanks, Cayetano

cvvergara commented 6 years ago

Thanks