vectorize

eolab.georastertools.processing.vector.vectorize(category_raster: Path | str, raster: Path | str, category_column: str = 'Classe') GeoDataFrame[source]

Vectorize a raster containing categorical data. Only data intersecting the raster bounds are vectorized.

Parameters:
  • category_raster (str or Path) – Raster containing categories to vectorize data (if str)

  • raster (str or Path) – Raster image defining the zone of interest

  • category_column (str, optional, default="Classe") – Name of the column containing the category in the resulting geodataframe

Returns:

The geometries generated by the vectorization in the category crs

Return type:

gpd.GeoDataFrame