turf icon indicating copy to clipboard operation
turf copied to clipboard

booleanOverlap incorrectly returns true for adjoining polygons

Open stevage opened this issue 2 years ago • 0 comments

v 6.5.0

This may be the same bug report as #2271 (it's unclear what the intention of that report is).

But, the definition of booleanOverlap is:

returns true if their intersection set results in a geometry different from both but of the same dimension

Two polygons that share an edge (only) have an intersection set which is a line, and hence of a different dimension (1 vs 2).

But actually booleanOverlap returns true, which then makes intersect throw an error.

stevage avatar Jul 13 '23 07:07 stevage