Description
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:
const newFC = turf.crop(oldFC, [xmin, ymin, xmax, ymax])
or
const newFC = turf.crop(oldFC, cropPolygon)
It's relatively easy to use intersect to crop Polygon
s, and booleanPointInPolygon
to filter out Point
s, but I'm not even sure if there's a straightforward way to crop LineString
s currently.