1gdal_contour(1) General Commands Manual gdal_contour(1)
2
3
4
6 gdal_contour - .TH "gdal_contour" 1 "Fri Apr 22 2011" "GDAL"
7
9 gdal_contour - builds vector contour lines from a raster elevation
10 model
11
13 Usage: gdal_contour [-b <band>] [-a <attribute_name>] [-3d] [-inodata]
14 [-snodata n] [-f <formatname>] [-i <interval>]
15 [-off <offset>] [-fl <level> <level>...]
16 [-nln <outlayername>]
17 <src_filename> <dst_filename>
18
20 This program generates a vector contour file from the input raster
21 elevation model (DEM).
22
23 Starting from version 1.7 the contour line-strings will be oriented
24 consistently. The high side will be on the right, i.e. a line string
25 goes clockwise around a top.
26
27 -b band:
28 picks a particular band to get the DEM from. Defaults to band 1.
29
30 -a name:
31 provides a name for the attribute in which to put the elevation. If
32 not provided no elevation attribute is attached.
33
34 -3d:
35 Force production of 3D vectors instead of 2D. Includes elevation at
36 every vertex.
37
38 -inodata:
39 Ignore any nodata value implied in the dataset - treat all values
40 as valid.
41
42 -snodata value:
43 Input pixel value to treat as 'nodata'.
44
45 -f format:
46 create output in a particular format, default is shapefiles.
47
48 -i interval:
49 elevation interval between contours.
50
51 -off offset:
52 Offset from zero relative to which to interpret intervals.
53
54 -fl level:
55 Name one or more 'fixed levels' to extract.
56
57 -nln outlayername:
58 Provide a name for the output vector layer. Defaults to 'contour'.
59
61 This would create 10meter contours from the DEM data in dem.tif and
62 produce a shapefile in contour.shp/shx/dbf with the contour elevations
63 in the 'elev' attribute.
64
65 gdal_contour -a elev dem.tif contour.shp -i 10.0
66
68 Frank Warmerdam <warmerdam@pobox.com>, Silke Reimer
69 <silke@intevation.de>
70
71
72
73GDAL Fri Apr 22 2011 gdal_contour(1)