mosaic.operations.crop#
- crop(geometry, distance, query, keep_smaller=True)[source]#
Filters points based on their distance to a set of query points.
- Parameters:
- geometry
mosaic.geometry.Geometry Input data.
- distancefloat
Distance threshold for cropping.
- querynp.ndarray
Points to compute distances to.
- keep_smallerbool, optional
If True, keep points closer than distance threshold. If False, keep points farther than distance threshold. Default is True.
- geometry
- Returns:
mosaic.geometry.GeometryCropped geometry.