You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is not really an easy way to crop a featureCollection (or other geometry type) to a polygon or bbox.
There are times when I just want to do:
constnewFC=turf.crop(oldFC,[xmin,ymin,xmax,ymax])
or
constnewFC=turf.crop(oldFC,cropPolygon)
It's relatively easy to use intersect to crop Polygons, and booleanPointInPolygon to filter out Points, but I'm not even sure if there's a straightforward way to crop LineStrings currently.