Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
var pts = // my point featurecollection
var polys = // my poly featurecollection
pts.features = pts.features.filter(function(pt){
var isInside = false
polys.features.forEach(function(poly){
if(turf.inside(pt, poly)) isInside = true
})
return isInside
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment