-
Notifications
You must be signed in to change notification settings - Fork 372
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
Iterated noding failed to converge #877
Comments
Snapping the geometry to an appropriate grid to made it work for me |
This is more of a design issue than a bug. It's a robustness problem with the current implementation of This code is pretty old. If some recent improvements can be brought into |
@pjanetzek A question for you: It looks like you are performing the noding using PostGIS (or some other DB). Currently What is your use case for noding? Would attribute preservation via a window function be useful for you? |
Also, in PostGIS
Note that the window function version |
I can see this very useful for our use cases when working with urban street networks that come from OpenStreetMap or other sources. We often need to add additional nodes on intersections when there are none or as a preprocessing step prior polygonization to ensure proper result. Having the geometry properly noded and containing the original attributes would be super helpful.
Is this the case in GEOS (via shapely) as well? Shall we rather use |
Thanks for the reply. Linear network noding is indeed one of the use cases that I thought would be useful.
Yes, this is how GEOS works (PostGIS uses it). So Shapely should work in the same way. |
@dr-jts Thanks a lot for your suggestions! I'm currently revisiting old plpgsql code for generating 3D models with roof shapes from OpenStreetMap data that I procrastinated for a university project ten years ago. Now I'm trying to get it to a state that it finally could be released onto the public. Looking at your image there is certainly a bug in the quadruple_saltbox roof code. Yes, I recall there were cases where it was tricky to reattach the line attributes after noding. |
A further note: in PostGIS you can combine noding and snapping to a grid by using A future |
We have recently discussed exposing Just wanted to mention this here in case it makes a difference when putting |
Hello, I ran into this error and was wondering if it's expected or be considered a bug:
ERROR: GEOSNode: TopologyException: Iterated noding failed to converge after 6 iterations (near 132163 474)
I'm using Arch linux with libgeos 3.11.1-1
The text was updated successfully, but these errors were encountered: