filter
- eolab.georastertools.processing.vector.filter(geoms: GeoDataFrame | Path | str, raster: Path | str, within: bool = False, output: Path | str | None = None, driver: str = 'GeoJSON') GeoDataFrame[source]
Filter the geometries to keep those which intersect the raster bounds
- Parameters:
geoms (str or Path or
gpd.GeoDataFrame) – Filename of the vector data (if str) or GeoDataFrameraster (str or Path) – Raster image
within (bool, optional, default=False) – If true, statistics are computed for geometries within the raster shape. Otherwise statistics are computed for geometries that intersect the raster shape.
output (str or Path, optional, default=None) – File where to save the filtered geoms If None, nothing written to disk (only in memory)
driver (str, optional, default=GeoJSON) – Driver to write the output
- Returns:
The geometries that intesect the raster
- Return type:
gpd.GeoDataFrame