crop

eolab.georastertools.processing.vector.crop(input_image: Path | str, roi: GeoDataFrame | Path | str, output_image: Path | str)[source]

Crops an input image to the roi bounds.

Parameters:
  • input_image (pathlib.Path or str) – Filename of the raster image to crop

  • roi (str or Path or GeoDataFrame) – Filename of the vector data (if str) or GeoDataFrame

  • output_image (pathlib.Path or str) – Filename of the generated raster image