xdem.DEM.polygonize#
- DEM.polygonize(target_values='all', data_column_name='id')#
Polygonize the raster into a vector.
- Parameters:
target_values (
int|float|integer[Any] |floating[Any] |tuple[int|float|integer[Any] |floating[Any],int|float|integer[Any] |floating[Any]] |list[int|float|integer[Any] |floating[Any]] |ndarray[tuple[Any,...],dtype[floating[Any] |integer[Any]]] |Literal['all']) – Value or range of values of the raster from which to create geometries (defaults to “all”, for which all unique pixel values of the raster are used).data_column_name (
str) – Data column name to be associated with target values in the output vector (defaults to “id”).
- Return type:
- Returns:
gu.Vector containing the polygonized geometries associated to target values.