Giter Club home page Giter Club logo

Comments (5)

dabreegster avatar dabreegster commented on June 22, 2024

Before collapsing, something very wrong is happening with clockwise ordering. The north and south intersection both supposedly have 4 roads connected?! And where are the labels?
Screenshot from 2023-02-17 15-49-51

from osm2streets.

dabreegster avatar dabreegster commented on June 22, 2024

Ah my mistake, the road ordering layer is relative to the final output, not each debug step

from osm2streets.

dabreegster avatar dabreegster commented on June 22, 2024

I think

for trim_to in all_intersection_infinite(&center_away, &perp) {
is messing up between r7 and r8. These two form a loop, and we're winding up trimming to the wrong end.
331421547_581164990553759_6839840073187760828_n

from osm2streets.

BudgieInWA avatar BudgieInWA commented on June 22, 2024

I have a theory that the intersection geometry code give up any time there is a loop road. That would explain the circle at the end.

But the messed up geometry at step 6 is a different problem. I agree that it looks like the wrong end of r8 is being used. But maybe only for some of the calculations? It looks like the algorithm asks about the intersection between r7 and r8 without specifying which end of each road it cares about?

from osm2streets.

dabreegster avatar dabreegster commented on June 22, 2024

It looks like the algorithm asks about the intersection between r7 and r8 without specifying which end of each road it cares about?

This might be it..

I had a fuzzy thought earlier about how we trim the center line back based on a hit point from the projected left or right line. Right now we either maximize or minimize the length of the resulting polyline, in an attempt to find the one "closest to the intersection." I might try minimizing the distance to the actual hit point we found.. because it should pretty much always be about road_width / 2 away.

I'll try both of these ideas out and try and figure this out finally. Loop roads have caused enough trouble!

from osm2streets.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.