Git Product home page Git Product logo

Comments (9)

dsymonds avatar dsymonds commented on June 6, 2024

Yep, it is totally acceptable. ;-)

e7cfa0c added Polygon.Contains and Polygon.Intersects. To clarify, you're after the equivalent of C++'s S2Polygon::InitToIntersection?

from geo.

ctessum avatar ctessum commented on June 6, 2024

Yes, I mean the equivalent of S2Polygon::InitToIntersection. Thanks!

from geo.

brendanashworth avatar brendanashworth commented on June 6, 2024

I'm interested in contributing a PR for this — are there any thoughts on using Martinez-Rueda for the boolean operation algorithm? Or would it be best to port the C++ version accordingly?

from geo.

ctessum avatar ctessum commented on June 6, 2024

There is a port of (one of) the Martinez-Rueda algorithms here. However, that one is for planar geometry, not sure that it would work here?

from geo.

brendanashworth avatar brendanashworth commented on June 6, 2024

@ctessum I'm not sure myself. The projection onto a plane would conserve intersection points but not lengths.. is it naive to assume the lengths are proportional and thus area is conserved after we project back to the sphere?

from geo.

alphairys avatar alphairys commented on June 6, 2024

any update on this? Curious if anyone is actively working on this piece?

from geo.

brendanashworth avatar brendanashworth commented on June 6, 2024

@alphairys I don't have an update/I haven't been working on it. If you're looking for a workaround, I've been using CellUnions (after covering the polygon with cells) as a workaround, and they implement simple binary operations like CellUnionFromIntersection.

from geo.

rsned avatar rsned commented on June 6, 2024

There is still work being done on this

from geo.

ipipdotnet avatar ipipdotnet commented on June 6, 2024

I think someone has already done that https://github.com/davidreynolds/gos2/blob/master/s2/polygon_test.go

from geo.

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.