Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Road junctions problem #210

Open
JacekTomaszewski opened this issue Apr 17, 2023 · 1 comment
Open

Road junctions problem #210

JacekTomaszewski opened this issue Apr 17, 2023 · 1 comment

Comments

@JacekTomaszewski
Copy link

JacekTomaszewski commented Apr 17, 2023

Hello,
I have a problem with rendering some road junctions. There is a issue when program is finding intersections between way segments (NetworkCalculator.calculateJunctionNodeEffects in first for loop). When way segments are almost parallel, alghoritm is finding point far away from junction (which is true), but it causes a problem of not valid junctions. I've attached geojson & photos of problem.

You can find this problem for example at this xml:
https://www.openstreetmap.org/api/0.6/map?bbox=135.5006%2C34.70351%2C135.50438%2C34.70613

0
1
2
3
4

Geojson.txt:

geojson.txt

Situation, when junction is not rendered:

junctionNotRendered

Is there any possibility to fix the problem?

Thanks

@tordanik
Copy link
Owner

Thank you for the detailed analysis of the problem!

While this is partly a data issue (2 highway=unclassified ways less than 10 cm apart is not what I consider good mapping), this is just one example of a problem that occurs somewhat frequently and OSM2World needs to become more robust about junction calculations.

I've not yet figured out what the best workaround for this kind of situation should be, but it should be possible to detect cases where the intersection between two adjacent streets would be very far from the junction node.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants