Turfjs / turf

A modular geospatial engine written in JavaScript and TypeScript

Home Page:https://turfjs.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BooleanWithin does not work correctly with (Island polygon / Doughnut).

armanthegreat opened this issue · comments

Please provide the following when reporting an issue:

  • Version of Turf 6.5

  • Italy geoJson file
    San Marino geoJson file

  • I am trying to use Turf's booleanWithin method to comapre two features in my dataset. When it comes to doing the check with polygons that have a hole in them, also know as Island polygon/ Doughnut, the method returns wrong results. The example used was a (Polygon,Multipolygon) => booleanWithin(San Marino, Italy) . Expecting this to return false but getting true.

Do Turf's boolean functions support Island polygons ?