I'm trying to create a Minecraft map of the Ernst Reuter Platz in Berlin. For this purpose, I'm using OpenStreetMap data.
This is what the place looks like on a 2D map:
When I render the roads and the buildings into a Minecraft map, I'm doing something wrong. Here you can find a zoomable preview of the map.
Gray blocks represent streets (from highways to footways) and reddish-brown ones - contour of the buildings.
As you can see, there is some error in the renderer. For example at a certain location there is a building, where the lines seem to be drawn in the wrong order.
Is there an algorithm, which I can use in order to sort the points of the OSM polygons so that they result in a nice shape (like a real building) ? If yes, what is it called?
أكثر...
This is what the place looks like on a 2D map:

When I render the roads and the buildings into a Minecraft map, I'm doing something wrong. Here you can find a zoomable preview of the map.

Gray blocks represent streets (from highways to footways) and reddish-brown ones - contour of the buildings.
As you can see, there is some error in the renderer. For example at a certain location there is a building, where the lines seem to be drawn in the wrong order.

Is there an algorithm, which I can use in order to sort the points of the OSM polygons so that they result in a nice shape (like a real building) ? If yes, what is it called?
أكثر...