Created
July 11, 2016 17:28
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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