gdal.polygonize

Convert raster regions of equal value into polygon features.

  • Kind: standard
  • Network: no
  • Wraps: gdal_polygonize

Inputs🔗

NameTypeDescription
sourcefile (GeoTIFF)Input raster to polygonize.
bandnumberBand index (1-based) to polygonize. Default 1.
field_namestringAttribute name for the pixel value on each output polygon. Default "DN".
connectednessnumberPixel connectedness, 4 (default) or 8.

Outputs🔗

NameTypeDescription
vectorsfile (GeoJSON)Polygon features with one attribute carrying the source pixel value.