OSM2World
OSM2World copied to clipboard
Oversized road junctions
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.
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) {
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.