GDAL-RASTER-CONTOUR(1) GDAL GDAL-RASTER-CONTOUR(1) (NAME) gdal-raster-contour - () (DEM) 3.11 . (SYNOPSIS) Usage: gdal raster contour [OPTIONS] Creates a vector contour from a raster elevation model (DEM). Positional arguments: -i, --input Input raster datasets [required] [not available in pipelines] -o, --output Output vector dataset [required] [not available in pipelines] Common Options: -h, --help Display help message and exit --json-usage Display usage as JSON document and exit --config = Configuration option [may be repeated] -q, --quiet Quiet mode (no progress bar or warning message) [not available in pipelines] Options: -f, --of, --format, --output-format Output format ("GDALG" allowed) [not available in pipelines] --co, --creation-option = Creation option [may be repeated] [not available in pipelines] --lco, --layer-creation-option = Layer creation option [may be repeated] [not available in pipelines] --overwrite Whether overwriting existing output dataset is allowed [not available in pipelines] --output-layer Output layer name -b, --band Input band (1-based index) (default: 1) --elevation-name Name of the elevation field --min-name Name of the minimum elevation field --max-name Name of the maximum elevation field --3d Force production of 3D vectors instead of 2D --input-nodata Input pixel value to treat as 'nodata' --interval Elevation interval between contours Mutually exclusive with --levels, --exp-base --levels List of contour levels [may be repeated] Mutually exclusive with --interval, --exp-base -e, --exp-base Base for exponential contour level generation Mutually exclusive with --interval, --levels --off, --offset Offset to apply to contour levels -p, --polygonize Create polygons instead of lines --group-transactions Group n features per transaction (default 100 000) Advanced Options: --if, --input-format Input formats [may be repeated] [not available in pipelines] --oo, --open-option = Open options [may be repeated] [not available in pipelines] --output-oo, --output-open-option = Output open options [may be repeated] [not available in pipelines] (DESCRIPTION) gdal raster contour () (DEM) . 3.12 GDAL gdal pipeline . 3.12 . GDALG ( / ) (GDALG OUTPUT (ON-THE-FLY / STREAMED DATASET)) JSON GDALG . GDALG: GDAL Streamed Algorithm / (on-the-fly / streamed) . : . . (PROGRAM-SPECIFIC OPTIONS) --3d . . -b, --band DEM . 1 . --elevation-name (attribute) . . (-p) . -e, --exp-base : ^ k k . --interval --levels . --group-transactions n ( 100 000). --interval . --levels --exp-base . INTERVAL . --levels . MIN MAX . --polygonize . --interval --exp-base . --max-name . . (-p) . --min-name . . (-p) . --off, --offset () . --nln, --output-layer . "contour" . -p, --polygonize . --input-nodata 'nodata' . (STANDARD OPTIONS) --co, --creation-option = . GeoTIFF (tiled) . . . --formats . Raster drivers . --if, --input-format / () . . . . . --lco, --layer-creation-option = . GeoPackage . . . --formats . Vector drivers . . --oo, --open-option = ( ). . --output-open-option, --output-oo = 3.12 . ( ). . -f, --of, --format, --output-format . : gdal --formats | grep vector | grep rw | sort --overwrite . gdal . (EXIT STATUS) 0 ( ). (EXAMPLES) : () : gdal raster contour --interval 100 elevation.tif contour.shp shapefile contour.shp . : : gdal raster contour --levels MIN,100,200,MAX --polygonize --min-name MIN --max-name MAX elevation.tif contour.shp shapefile contour.shp 100 100 200 200 MIN MAX . (AUTHORS) Alessandro Pasotti (COPYRIGHT) 1998-2026 August 18, 2026 GDAL-RASTER-CONTOUR(1)