arcgis-osm-editor icon indicating copy to clipboard operation
arcgis-osm-editor copied to clipboard

Turn Restriction "NO" on edges adjacent to osm turn restrictions starting with anything but "no"

Open availle opened this issue 10 years ago • 1 comments
trafficstars

Hi,

while working with data generated by ArcGis I found the following bug:

Apparently the method CreateTurnFeature_ONLY which is called when the osm turn restriction relation starts with "only" (so, only_right_turn / only_left_turn / only_straight_on) hardcodes the turn restriction field of all adjacent edges in ArcGis to "NO" (line 261).

in /src/OSMGeoProcessing/NetworkDataset/NetworkTurns.cs

I fail to see the reasoning behind this. Isn't "only_right_turn" a combination of "no_left_turn" and "no_straight_on"?

I think it might be better to just set the tag of the original edge to whatever the osm format says and leave the adjacent edges alone.

availle avatar Aug 04 '15 08:08 availle

What if there are more than three directions to go?

paulcone avatar Aug 04 '15 16:08 paulcone