turf icon indicating copy to clipboard operation
turf copied to clipboard

@turf/boolean-contains incorrectly returns true for the geometry that is not fully contained in another.

Open jayarjo opened this issue 3 years ago • 0 comments

6.5.0 http://geojson.io/#map=18/37.77964/-122.46524 https://jsfiddle.net/w7r8kbL4/

@turf/boolean-contains incorrectly returns true for the geometry that is not fully contained in another. Neither one of Polygons contain holes, so I believe it is a different problem than those that were reported previously.

Screen Shot 2021-12-31 at 13 28 39

As you can see from the screenshot, while vertices of rectangle are indeed fully contained, one of its parts still falls outside of bigger weirdly shaped polygon. Yet @turf/boolean-contains reports it as fully contained.

jayarjo avatar Dec 31 '21 09:12 jayarjo