Created
July 11, 2016 17:28
-
-
Save morganherlocker/52fb142e57dbb3e662c65ad8db3edde2 to your computer and use it in GitHub Desktop.
This file contains 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