reproject

eolab.georastertools.processing.vector.reproject(geoms: GeoDataFrame | Path | str, raster: Path | str, output: Path | str | None = None, driver: str = 'GeoJSON') GeoDataFrame[source]

Reproject the geometries in the raster CRS

Parameters:
  • geoms (str or Path or gpd.GeoDataFrame) – Filename of the vector data (if str) or GeoDataFrame

  • raster (str or Path) – Raster image

  • output (str or Path, optional, default=None) – File where to save the reprojected geoms If None, nothing written to disk (only in memory)

  • driver (str, optional, default="GeoJSON") – Driver to write the output

Returns:

The geometries in the raster CRS

Return type:

gpd.GeoDataFrame