Git Product home page Git Product logo

Comments (7)

dsymonds avatar dsymonds commented on May 26, 2024

Yes, looks like we had a couple of typos in the region coverer. I'll try to get a fix out today.

from geo.

dsymonds avatar dsymonds commented on May 26, 2024

Actually the fix might not be so trivial to figure out, but e0bfefd fixes a few little things around it.

from geo.

azr avatar azr commented on May 26, 2024

Hello there , I also made this fix : f509ac2

Intersect returned false if the cell is completely 'inside' the loop.

This fixed this test: 46c3b8b

from geo.

azr avatar azr commented on May 26, 2024

To explain the fix:

Covering returns an empty CellUnion where it should not.

This happens because the generated cell by FastCovering is much bigger than the actual Region ( which is a Loop ) and Cells for which region.IntersectsCell(cell) == false are filtered out inside coverer.newCandidate.

Because the region is fully contained by the cell it does not intersects it.
I thought intersect should return true if the first point of the Loop is inside the cell.

from geo.

azr avatar azr commented on May 26, 2024

Please ignore the two last messages as they just fix a bug from a feature in a commit I tried to merge in from someone else.

Sorry !

from geo.

dsymonds avatar dsymonds commented on May 26, 2024

It's possible that 0c31b84 fixes this bug (by fixing Rect.IntersectsCell). Can you give it a test?

from geo.

dsymonds avatar dsymonds commented on May 26, 2024

I suspect the fix mentioned in my previous comment solves this, but feel free to reply if it doesn't.

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.