[GIS] Turf.js Check if polygon “Contains” another polygon

javascriptopenlayersturf

I am using turf.js for geometrical operation on openlayers3 features but i think it lacks support for "contains" operation.

There are these within and inside operations, but they return "false" when i check it with the polygon. Is there any other way to do this "contains" operation with turf.js or do i have to use the JSTS?

Best Answer

You should be able to use the turf/boolean-contains module, noting that this only returns a true or false answer. Hope that helps

Related Question