turf icon indicating copy to clipboard operation
turf copied to clipboard

Detect whether two polygons intersect or just share a border

Open victoriaunizhona opened this issue 5 years ago • 1 comments

I am using turf intersect to detect whether polygons are overlapping.

How to determine whether they just share a border as on this image

image

Or they are intersecting

image

Would really appreciate your suggestions.

victoriaunizhona avatar Oct 20 '20 09:10 victoriaunizhona

@victoriaunizhona take a look here, where it describe the spatial relationship you want to determine (touch). Doesn't look like Turf has a specific module for that, but I guess you can use a combination of some "boolean" ones.

stebogit avatar Oct 21 '20 05:10 stebogit