I am importing OSM data into PostGIS using osm2pgrouting but some data is missing/did not import. I am using the default mapconfig.xml and this appears to work for most roads.
For example in below screencap, blue is the ways created by osm2pgrouting, and red is the line when the data is imported using osm2pgsql (using default.style and red filtered on "highway" = 'motorway' for this questions purposes). The missing section is a bridge, however other bridges have imported correctly, and some other roads (like 'service') are also missing.
The osm id of one of the missing lines in the pic is 158307203 if that helps, data sourced from Mapzen. The XML of that line is:
(Chinese characters replaced with x to post on StackExchange).
Below is the log when I imported the data:
$osm2pgrouting -file ~/osm2pgrouting/mapconfig.xml -dbname gis -user gisuser -passwd gisuser -cleanhost=127.0.0.1 user=gisuser dbname=gis port=5432 password=gisuserconnection successTrying to load config file /path/to/mapconfig.xmlTrying to parse configTrying to load dataTrying to parse dataunknown maxspeed value: 56; 72; 72unknown maxspeed value: 56;108unknown maxspeed value: 56;108Split waysDropping tables...Creating tables...Nodes table created2create ways failed:Types table createdWay_tag table createdRelations table createdRelation_ways table createdClasses table createdAdding tag types and classes to database...Adding relations to database...Adding nodes to database...Adding ways to database...Creating topology...NOTICE: PROCESSING:NOTICE: pgr_createTopology('ways',1e-05,'the_geom','gid','source','target','truNOTICE: Performing checks, pelase wait .....NOTICE: Creating Topology, Please wait...NOTICE: 1000 edges processed...NOTICE: 282000 edges processedNOTICE: -------------> TOPOLOGY CREATED FOR 282284 edgesNOTICE: Rows with NULL geometry or NULL id: 0NOTICE: Vertices table for table osm2pgr.ways is: osm2pgr.ways_vertices_pgrNOTICE: ----------------------------------------------Create Topology success#########################size of streets: 128763size of splitted ways : 282284finishedI noticed the "2create ways failed" message but not sure why no error message was generated. Hoping someone can explain why these roads failed to import.
أكثر...
For example in below screencap, blue is the ways created by osm2pgrouting, and red is the line when the data is imported using osm2pgsql (using default.style and red filtered on "highway" = 'motorway' for this questions purposes). The missing section is a bridge, however other bridges have imported correctly, and some other roads (like 'service') are also missing.

The osm id of one of the missing lines in the pic is 158307203 if that helps, data sourced from Mapzen. The XML of that line is:
(Chinese characters replaced with x to post on StackExchange).
Below is the log when I imported the data:
$osm2pgrouting -file ~/osm2pgrouting/mapconfig.xml -dbname gis -user gisuser -passwd gisuser -cleanhost=127.0.0.1 user=gisuser dbname=gis port=5432 password=gisuserconnection successTrying to load config file /path/to/mapconfig.xmlTrying to parse configTrying to load dataTrying to parse dataunknown maxspeed value: 56; 72; 72unknown maxspeed value: 56;108unknown maxspeed value: 56;108Split waysDropping tables...Creating tables...Nodes table created2create ways failed:Types table createdWay_tag table createdRelations table createdRelation_ways table createdClasses table createdAdding tag types and classes to database...Adding relations to database...Adding nodes to database...Adding ways to database...Creating topology...NOTICE: PROCESSING:NOTICE: pgr_createTopology('ways',1e-05,'the_geom','gid','source','target','truNOTICE: Performing checks, pelase wait .....NOTICE: Creating Topology, Please wait...NOTICE: 1000 edges processed...NOTICE: 282000 edges processedNOTICE: -------------> TOPOLOGY CREATED FOR 282284 edgesNOTICE: Rows with NULL geometry or NULL id: 0NOTICE: Vertices table for table osm2pgr.ways is: osm2pgr.ways_vertices_pgrNOTICE: ----------------------------------------------Create Topology success#########################size of streets: 128763size of splitted ways : 282284finishedI noticed the "2create ways failed" message but not sure why no error message was generated. Hoping someone can explain why these roads failed to import.
أكثر...