OSM2World icon indicating copy to clipboard operation
OSM2World copied to clipboard

Oversized road junctions

Open skarkkai opened this issue 8 years ago • 2 comments

Attached screenshot shows some excessively large road junctions, highlighted. Some objects have been removed to better show the problem. The zip contains the .osm file (lng=24.938, lat=60.170) and the .obj file generated from it using latest code (revision 05697609c0e675a26b6e6d9a1739c08a549d0200).

I use OSM2World for http://touch-mapper.org. Roads are raised from the base, pedestrian roads more than other roads. A very large junction for pedestrian roads, thus, results in a weird elevated area as hilighted in the second screenshot. For my purposes it would be much preferable to err on the side of too small junctions.

kaivokatu-junctions.zip

kaivokatu-junctions

kaivokatu-junctions-tactile

skarkkai avatar Mar 13 '16 09:03 skarkkai

One solution is to simply to disable drawing junctions where there are more then 4 road segments.

Changing line 89 in RoadModule.java as below solves your problem but i guess you could argue that I'm hiding the issue rather than fixing it.

if (connectedRoads.size() > 2 && connectedRoads.size() < 5) {

pinglis avatar Mar 18 '16 05:03 pinglis

This junction is actually for 4 road segments, as are all the others that have been oversided. I ended up disabling junctions completely when there are 4 or more road segments. Thanks for the tip.

I would prefer being able to limit the junction size to a constant size (I have set a maximum width for roads). I tried doing that, but without success.

skarkkai avatar Mar 19 '16 15:03 skarkkai