question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Boolean Overlap - doesn't overlap inside polygon

See original GitHub issue

@turf/boolean-overlap - doesn’t overlap inside polygon

@rowanwins I’ve been using @turf/boolean-overlap to apply a mask operation on the grid modules. Each grid polygon does the boolean-overlap method and should return false/true, however it seems like the polygon that are completely within (not touching the lines) are not counted as overlapping, is that the expected behavior? I would assume that the inner polys should still be overlapping the mask polygon.

@stebogit Thoughts? Since we’re working on the grid modules.

@turf/triangle-grid

image

@turf/square-grid

image

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
DenisCarrierecommented, Oct 23, 2017

I’m using @turf/intersect and it works out pretty good for this scenario.

image

1reaction
rowanwinscommented, Oct 23, 2017

@DenisCarriere boolean-intersect is probably what is required to get the proper result

Read more comments on GitHub >

github_iconTop Results From Across the Web

Turning overlapping MultiPolygons into not overlapping areas
1 Answer 1 · Run Menu Vector / Geoprocessing / Union · Identify which of the overlapping parts you want to keep. In...
Read more >
Preventing polygons from overlapping - Stack Overflow
If we assume you use polygon, here some solutions to detect overlapping; public static bool PointCollectionsOverlap_Slow(PointCollection ...
Read more >
ST_Overlaps - PostGIS
Two Polygons that intersect but with neither contained by the other overlap, but do not cross because their intersection has the same dimension....
Read more >
@turf/boolean-overlap - npm
Start using @turf/boolean-overlap in your project by running `npm i ... TypeScript icon, indicating that this package has built-in type ...
Read more >
Boolean Operations - Figma Help Center
Only the bottom shape layer is solid, the rest are subtracted from it. Intersect: Intersect creates a boolean group whose shape consists only...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found