geojson-geometries-lookup icon indicating copy to clipboard operation
geojson-geometries-lookup copied to clipboard

[Feature Suggestion] Support for overlapping polygons

Open Portur opened this issue 6 years ago • 5 comments

May I suggest another operation to determine touching containers?

eg. geo_lookup.getTouchingContainers(geometry) => returns touching features geo_lookup.forEachTouchingContainer(geometry) => iterate touching features

Link to geojson.io to paste the following JSON

Edit : updated pastebin

Portur avatar Mar 29 '18 10:03 Portur

Sorry this went off my radar. Do you still need that feature?

For "Touching" you mean that they overlap?

simonepri avatar Aug 01 '18 17:08 simonepri

It would be great to have. By touching I meant overlap, yes :)

Portur avatar Aug 01 '18 17:08 Portur

The pastebin has features to test. I'm sorry I'm not familiar with repos to help out with the logic. I would if I knew how.

For know my solution is to do it in postgis so would be great to have.

Portur avatar Aug 01 '18 17:08 Portur

It's really straightforward actually. We just need to change this line and use this package

simonepri avatar Aug 01 '18 18:08 simonepri

Is this not a feature yet? It'd be really useful

I want to see myself if a polygon, like a circle or a square overlaps any land. Wouldn't this be perfect for that?

Wazbat avatar Jul 12 '21 00:07 Wazbat