GDAL_CONTOUR(1) | GDAL | GDAL_CONTOUR(1) |
gdal_contour - Builds vector contour lines from a raster elevation model.
gdal_contour [-b <band>] [-a <attribute_name>] [-amin <attribute_name>] [-amax <attribute_name>]
[-3d] [-inodata]
[-snodata n] [-i <interval>]
[-f <formatname>] [[-dsco NAME=VALUE] ...] [[-lco NAME=VALUE] ...]
[-off <offset>] [-fl <level> <level>...] [-e <exp_base>]
[-nln <outlayername>] [-q] [-p]
<src_filename> <dst_filename>
The gdal_contour generates a vector contour file from the input raster elevation model (DEM).
The contour line-strings are oriented consistently and the high side will be on the right, i.e. a line string goes clockwise around a top.
New in version 2.4.0.
New in version 2.4.0.
New in version 2.3.0: If not specified, the format is guessed from the extension (previously was ESRI Shapefile).
New in version 2.4.0.
New in version 2.4.0.
Functionality of this utility can be done from C with GDALContourGenerate().
This would create 10-meter contours from the DEM data in dem.tif and produce a shapefile in contour.shp|shx|dbf with the contour elevations in the elev attribute.
gdal_contour -a elev dem.tif contour.shp -i 10.0
Frank Warmerdam <warmerdam@pobox.com>, Silke Reimer <silke@intevation.de>
1998-2023
January 2, 2023 |