hydromt.gis.DataArray.raster.vectorize#

gis.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