「Gdal contour」の版間の差分
提供: OSGeo.JP Wiki
(ページの作成: builds vector contour lines from a raster elevation model === 概要 (SYNOPSIS) === <pre> Usage: gdal_contour [-b <band>] [-a <attribute_name>] [-3d] [-inodata] …) |
|||
行16: | 行16: | ||
− | '''-b band'': | + | '''-b band''': |
picks a particular band to get the DEM from. Defaults to band 1. | picks a particular band to get the DEM from. Defaults to band 1. | ||
− | '''-a name'': | + | '''-a name''': |
provides a name for the attribute in which to put the elevation. If not provided no elevation attribute is attached. | provides a name for the attribute in which to put the elevation. If not provided no elevation attribute is attached. | ||
− | '''-3d'': | + | '''-3d''': |
Force production of 3D vectors instead of 2D. Includes elevation at every vertex. | Force production of 3D vectors instead of 2D. Includes elevation at every vertex. | ||
− | '''-inodata'': | + | '''-inodata''': |
Ignore any nodata value implied in the dataset - treat all values as valid. | Ignore any nodata value implied in the dataset - treat all values as valid. | ||
− | '''-snodata value'': | + | '''-snodata''' '' value'': |
Input pixel value to treat as "nodata". | Input pixel value to treat as "nodata". | ||
− | '''-f format'': | + | '''-f''' '' format'': |
create output in a particular format, default is shapefiles. | create output in a particular format, default is shapefiles. | ||
− | '''-i interval'': | + | '''-i''' ''interval'': |
elevation interval between contours. | elevation interval between contours. | ||
− | '''-off offset'': | + | '''-off''' ''offset'': |
Offset from zero relative to which to interpret intervals. | Offset from zero relative to which to interpret intervals. | ||
− | '''-fl level'': | + | '''-fl''' ''level'': |
Name one or more "fixed levels" to extract. | Name one or more "fixed levels" to extract. | ||
− | '''-nln outlayername'': | + | '''-nln''' ''outlayername'': |
Provide a name for the output vector layer. Defaults to "contour". | Provide a name for the output vector layer. Defaults to "contour". |
2011年11月29日 (火) 17:20時点における版
builds vector contour lines from a raster elevation model
概要 (SYNOPSIS)
Usage: gdal_contour [-b <band>] [-a <attribute_name>] [-3d] [-inodata] [-snodata n] [-f <formatname>] [-i <interval>] [-off <offset>] [-fl <level> <level>...] [-nln <outlayername>] <src_filename> <dst_filename>
解説 (DESCRIPTION)
This program generates a vector contour file from the input raster elevation model (DEM).
Starting from version 1.7 the contour line-strings will be oriented consistently. The high side will be on the right, i.e. a line string goes clockwise around a top.
-b band:
picks a particular band to get the DEM from. Defaults to band 1.
-a name:
provides a name for the attribute in which to put the elevation. If not provided no elevation attribute is attached.
-3d:
Force production of 3D vectors instead of 2D. Includes elevation at every vertex.
-inodata:
Ignore any nodata value implied in the dataset - treat all values as valid.
-snodata value:
Input pixel value to treat as "nodata".
-f format:
create output in a particular format, default is shapefiles.
-i interval:
elevation interval between contours.
-off offset:
Offset from zero relative to which to interpret intervals.
-fl level:
Name one or more "fixed levels" to extract.
-nln outlayername:
Provide a name for the output vector layer. Defaults to "contour".
EXAMPLE
This would create 10meter 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