osm2pgrouting icon indicating copy to clipboard operation
osm2pgrouting copied to clipboard

Import loses links with multiple tag matches

Open spencerrecneps opened this issue 8 years ago • 2 comments

After importing an .osm file I discovered that some road links are missing compared to the original OSM data. I found #114 and thought that might be the problem, but decided to try a simplified mapconfig.xml and the import completed as expected.

As far as I can tell, osm2pgrouting has trouble with features where multiple tags match the types defined in mapconfig.xml.

An example osm_id is 46226421. There are matching tags for highway and cycleway.

To test this, I imported once with the default mapconfig.xml file and once with a modified config file where I removed the "cycleway" class. When I import with the default config file there are no links for osm_id 46226421, when imported with the modified config file the road segments are present.

spencerrecneps avatar Sep 15 '16 21:09 spencerrecneps

Another example osm_id: 302156855 This one doesn't have any relations defined so might be easier to troubleshoot.

spencerrecneps avatar Sep 15 '16 22:09 spencerrecneps

Some fixes were done on develop branch some time ago by @PanlerAvide (see #130) and he also added a map config for bycycles maybe you can try out develop branch.

cvvergara avatar Sep 18 '16 14:09 cvvergara