Code Monkey home page Code Monkey logo

Comments (4)

FObermaier avatar FObermaier commented on June 18, 2024

What is JTS' result? I suspect it is a precision problem.

from nettopologysuite.

DGuidi avatar DGuidi commented on June 18, 2024

@FObermaier same suspect. I wanna check jts results first.

from nettopologysuite.

DGuidi avatar DGuidi commented on June 18, 2024

checked: jts'trunk returns same results

from nettopologysuite.

svalentinh avatar svalentinh commented on June 18, 2024

We also checked JTS with the same result. After some investigation it turns out its due to our implementation. We did calculate an intersection and then in a second step tried to remove the intersection from the geometry.
The problem is that one point is exactly on the line between two vertices and then the pricision model when rounding the coordinates moves the line between the two vertices slightly, and then if the intersection point is inside the geometry it creates a tail.

So strictly speeking the algorithm is correct and you just have to be carefull when using calculated geometries and instead of calculating an overlap and then removing that overlap, then just remove it by using the difference between the two original geometries

from nettopologysuite.

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.