pgRouting / osm2pgrouting

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

osm2pgrouting creates stray lines after extract edited in JOSM #247

Open josh-mccord opened 5 years ago

josh-mccord commented 5 years ago

Hi,

I'm not sure if this is a bug or behavior to be expected based on how the program works.

After using JOSM to either update the spatial location of a way or create a new way in a .osm file and running osm2pgrouting to create the network, stray lines appear on the new or modified ways. I have recreated this behavior across several datasets.

When I look at the edits online and in JOSM, the added or modified ways show correctly.

When I wait to download a new state file with the changes from https://download.geofabrik.de/north-america/us/georgia.html, they show correctly without any stray lines after running osm2pgrouting.

screen shot1 - before edit 1) run osmconvert to get .osm file 2) run osm2pgrouting --clean using for_cars config greene_county_ga_before_edit

screen shot2 - after edit 1) run osmconvert to get .osm file 2) edit .osm file with JOSM (ways added, moved) 3) run osm2pgrouting --clean using for_cars config greene_county_ga_after_edit

System: Windows 7 x64 PostgreSQL: 10.5 PostGIS: 2.4.4 r16526 pgRouting: 2.5.2 osm2pgrouting: 2.3.4 note: possibly related to #244 & #183

cayetanobv commented 5 years ago

Hi @josh-mccord ,

I'm agree this issue is related to #244 & #183 We need to debug what is happening with new nodes. It is very helpful your contribution.

Thanks,