gdal.contour

Generate contour lines from a raster (typically a DEM).

  • Kind: standard
  • Network: no
  • Wraps: gdal_contour

Inputs🔗

NameTypeDescription
sourcefile (GeoTIFF)Input raster (typically a DEM).
bandnumberBand index (1-based). Default 1.
intervalnumberContour interval in raster value units (default 1.0).
basenumberBase contour elevation (default 0).
field_namestringAttribute name carrying the contour elevation. Default "elev".

Outputs🔗

NameTypeDescription
vectorsfile (GeoJSON)Contour lines with one attribute holding the elevation.