hydromt.DataArray.raster.vectorize#

DataArray.raster.vectorize(connectivity=8)#

Return geometry of grouped pixels with the same value in a DataArray object.

Parameters:

connectivity (int, optional) – Use 4 or 8 pixel connectivity for grouping pixels into features, by default 8

Returns:

gdf – Geometry of grouped pixels.

Return type:

geopandas.GeoDataFrame