Generate 3D streets using OSM data?

I've been working on a project for a few weeks now that converts OSM data into 3D street meshes. However, I'm having the problem that all the streets are connected by individual points (green), and the streets are only saved as lines (black). If I simply give these lines a width (red), it works fine. But if, for example, a four-lane road splits into two-lane streets (Example B), it no longer works. Even though they should obviously be next to each other. I've been working on this for ages and can't find a solution. Perhaps someone can give me a simple answer.

Thank you so far!

(2 votes)
Loading...

Similar Posts

Subscribe
Notify of
2 Answers
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
JanaL161
5 months ago

Nodal points cannot be built clean without further logic.

But people have already dealt with this. I found here a tutorial for Unity, in which a technical presentation – the basis for the method – can also be found with more details.

This should also be applicable to your data, and surely what remains manual here can be automated.

https://youtu.be/ZiHH_BvjoGk

Further techniques can also be found on the Internet (example search term: “road mesh generator junction”).

Neuron123
5 months ago

I don’t know what format your broad lines are stored, but if it is possible, you could also make rectangular objects (with four corner coordinates) and then, if 2 of the rectangular objects meet, connect the respective outer edges to each other by taking the average coordinates for them. That is, in your Y branch, the two thinner lines would become thicker if they hit the thicker single line and you would have to connect the middle two corners to each other.