Giter Site home page Giter Site logo

Comments (6)

rgwozdz avatar rgwozdz commented on June 18, 2024 1

Cool will do; updated the name of the issue here. I'm actually seeing something possibly(?) unexpected with intersects when I pass in simple multipolygon geometries. I'll put it in a a fresh issue though.

from terraformer.

jgravois avatar jgravois commented on June 18, 2024

hey @rgwozdz!

currently the library pulls out the corresponding geometry when one passes in a single GeoJSON Feature, but doesn't appear to account for input FeatureCollections in any meaningful way.

in contrast, 'real' MultiPolygon's are definitely supported as input.

my first instinct is that it'd be a bit presumptious for terraformer to assume a FeatureCollection was composed of multiple features that mimic the relationship of individual polygons within a multipolygon, but i'm happy to be convinced otherwise.

regardless, there's definitely more that could be done in the way of clarifying expected behavior so i'd be happy to steward a contribution in that form too.

from terraformer.

rgwozdz avatar rgwozdz commented on June 18, 2024

@jgravois - ok, this isn't a big deal to me; I actually happened upon the error as I was digging into some other behavior with intersects. I'm happy to leave as is, but maybe we should update the doc as it appears to state that FeatureCollection is an allowable input.
If you think that update is a good idea, let me know, and I can PR.

from terraformer.

jgravois avatar jgravois commented on June 18, 2024

this isn't a big deal to me

understood. i definitely do appreciate you making notes and leaving breadcrumbs as you work.

PRs with tweaks to the doc in the name of clarification are always welcome. if you or a colleague end up poking around in intersects() code someday and want to codify the expectation with regard to FeatureCollections too, all the better. 🙏

fwiw, something simple to document the behavior in #71 is warranted too.

from terraformer.

jgravois avatar jgravois commented on June 18, 2024

my plan is to publish a release as soon as this small doc issue and #68 are addressed.

from terraformer.

jgravois avatar jgravois commented on June 18, 2024

resolved by #89 🌹

from terraformer.

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.