osm2pgrouting icon indicating copy to clipboard operation
osm2pgrouting copied to clipboard

osm2pgrouting creates stray lines after extract edited in JOSM

Open josh-mccord opened this issue 6 years ago • 1 comments

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

josh-mccord avatar Sep 18 '18 17:09 josh-mccord

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,

cayetanobv avatar Sep 19 '18 00:09 cayetanobv