1gdal_contour(1)             General Commands Manual            gdal_contour(1)
2
3
4

NAME

6       gdal_contourBuilds vector contour lines from a raster elevation model.
7

SYNOPSIS

9       Usage: gdal_contour [-b <band>] [-a <attribute_name>] [-3d] [-inodata]
10                           [-snodata n] [-i <interval>]
11                           [-f <formatname>] [[-dsco NAME=VALUE] ...] [[-lco NAME=VALUE] ...]
12                           [-off <offset>] [-fl <level> <level>...]
13                           [-nln <outlayername>]
14                           <src_filename> <dst_filename>
15

DESCRIPTION

17       This program generates a vector contour file from the input raster
18       elevation model (DEM).
19
20       Starting from version 1.7 the contour line-strings will be oriented
21       consistently. The high side will be on the right, i.e. a line string
22       goes clockwise around a top.
23
24       -b band:
25           picks a particular band to get the DEM from. Defaults to band 1.
26
27       -a name:
28           provides a name for the attribute in which to put the elevation. If
29           not provided no elevation attribute is attached.
30
31       -3d:
32           Force production of 3D vectors instead of 2D. Includes elevation at
33           every vertex.
34
35       -inodata:
36           Ignore any nodata value implied in the dataset - treat all values
37           as valid.
38
39       -snodata value:
40           Input pixel value to treat as 'nodata'.
41
42       -f format:
43           Create output in a particular format. Starting with GDAL 2.3, if
44           not specified, the format is guessed from the extension (previously
45           was ESRI Shapefile).
46
47       -dsco NAME=VALUE:
48           Dataset creation option (format specific)
49
50       -lco NAME=VALUE:
51           Layer creation option (format specific)
52
53       -i interval:
54           elevation interval between contours.
55
56       -off offset:
57           Offset from zero relative to which to interpret intervals.
58
59       -fl level:
60           Name one or more 'fixed levels' to extract.
61
62       -nln outlayername:
63           Provide a name for the output vector layer. Defaults to 'contour'.
64

C API

66       Functionality of this utility can be done from C with
67       GDALContourGenerate().
68

EXAMPLE

70       This would create 10meter contours from the DEM data in dem.tif and
71       produce a shapefile in contour.shp/shx/dbf with the contour elevations
72       in the 'elev' attribute.
73
74       gdal_contour -a elev dem.tif contour.shp -i 10.0
75

AUTHORS

77       Frank Warmerdam warmerdam@pobox.com, Silke Reimer silke@intevation.de
78
79
80
81GDAL                            Mon Feb 11 2019                gdal_contour(1)
Impressum