1gdal_utilities(1) General Commands Manual gdal_utilities(1)
2
3
4
6 gdal_utilities - .TH "gdal_utilities" 1 "Fri Apr 22 2011" "GDAL"
7
9 gdal_utilities - The following utility programs are distributed with
10 GDAL.
11
12 · gdalinfo - report information about a file.
13 · gdal_translate - Copy a raster file, with control of output format.
14 · gdaladdo - Add overviews to a file.
15 · gdalwarp - Warp an image into a new coordinate system.
16 · gdaltindex - Build a MapServer raster tileindex.
17 · gdalbuildvrt - Build a VRT from a list of datasets.
18 · gdal_contour - Contours from DEM.
19 · gdaldem - Tools to analyze and visualize DEMs.
20 · rgb2pct.py - Convert a 24bit RGB image to 8bit paletted.
21 · pct2rgb.py - Convert an 8bit paletted image to 24bit RGB.
22 · gdal_merge.py - Build a quick mosaic from a set of images.
23 · gdal2tiles.py - Create a TMS tile structure, KML and simple web
24 viewer.
25 · gdal_rasterize - Rasterize vectors into raster file.
26 · gdaltransform - Transform coordinates.
27 · nearblack - Convert nearly black/white borders to exact value.
28 · gdal_retile.py - Retiles a set of tiles and/or build tiled pyramid
29 levels.
30 · gdal_grid - Create raster from the scattered data.
31 · gdal_proximity - Compute a raster proximity map.
32 · gdal_polygonize - Generate polygons from raster.
33 · gdal_sieve.py - Raster Sieve filter.
34 · gdal_fillnodata.py - Interpolate in nodata regions.
35 · gdal-config - Get options required to build software using GDAL.
37 Access an existing file to read it is generally quite simple. Just
38 indicate the name of the file or dataset on the commandline. However,
39 creating a file is more complicated. It may be necessary to indicate
40 the the format to create, various creation options affecting how it
41 will be created and perhaps a coordinate system to be assigned. Many of
42 these options are handled similarly by different GDAL utilities, and
43 are introduced here.
44 -of format
45 Select the format to create the new file as. The formats are
46 assigned short names such as GTiff (for GeoTIFF) or HFA (for Erdas
47 Imagine). The list of all format codes can be listed with the
48 --formats switch. Only formats list as '(rw)' (read-write) can be
49 written.
50 Many utilities default to creating GeoTIFF files if a format is not
51 specified. File extensions are not used to guess output format, nor are
52 extensions generally added by GDAL if not indicated in the filename by
53 the user.
54 -co NAME=VALUE
55 Many formats have one or more optional creation options that can be
56 used to control particulars about the file created. For instance,
57 the GeoTIFF driver supports creation options to control
58 compression, and whether the file should be tiled.
59 The creation options available vary by format driver, and some simple
60 formats have no creation options at all. A list of options supported
61 for a format can be listed with the '--format <format>' commandline
62 option but the web page for the format is the definitive source of
63 information on driver creation options.
64 -a_srs SRS
65 Several utilities, (gdal_translate and gdalwarp) include the
66 ability to specify coordinate systems with commandline options like
67 -a_srs (assign SRS to output), -s_srs (source SRS) and -t_srs
68 (target SRS).
69 These utilities allow the coordinate system (SRS = spatial reference
70 system) to be assigned in a variety of formats.
71 · NAD27/NAD83/WGS84/WGS72: These common geographic (lat/long)
72 coordinate systems can be used directly by these names.
73 · EPSG:n: Coordinate systems (projected or geographic) can be selected
74 based on their EPSG codes, for instance EPSG:27700 is the British
75 National Grid. A list of EPSG coordinate systems can be found in the
76 GDAL data files gcs.csv and pcs.csv.
77 · PROJ.4 Definitions: A PROJ.4 definition string can be used as a
78 coordinate system. For instance '+proj=utm +zone=11 +datum=WGS84'.
79 Take care to keep the proj.4 string together as a single argument to
80 the command (usually by double quoting).
81 · OpenGIS Well Known Text: The Open GIS Consortium has defined a
82 textual format for describing coordinate systems as part of the
83 Simple Features specifications. This format is the internal working
84 format for coordinate systems used in GDAL. The name of a file
85 containing a WKT coordinate system definition may be used a
86 coordinate system argument, or the entire coordinate system itself
87 may be used as a commandline option (though escaping all the quotes
88 in WKT is quite challenging).
89 · ESRI Well Known Text: ESRI uses a slight variation on OGC WKT format
90 in their ArcGIS product (ArcGIS .prj files), and these may be used in
91 a similar manner to WKT files, but the filename should be prefixed
92 with ESRI::. For example 'ESRI::NAD 1927 StatePlane Wyoming West FIPS
93 4904.prj'.
94 · Spatial References from URLs: For example
95 http://spatialreference.org/ref/user/north-pacific-albers-conic-
96 equal-area/.
97 · filename: The name of a file containing WKT, PROJ.4 strings, or
98 XML/GML coordinate system definitions can be provided.
100 All GDAL command line utility programs support the following 'general'
101 options.
102 --version
103 Report the version of GDAL and exit.
104 --formats
105 List all raster formats supported by this GDAL build (read-only and
106 read-write) and exit. The format support is indicated as follows:
107 'ro' is read-only driver; 'rw' is read or write (ie. supports
108 CreateCopy); 'rw+' is read, write and update (ie. supports Create).
109 A 'v' is appended for formats supporting virtual IO (/vsimem,
110 /vsigzip, /vsizip, etc).
111 --format format
112 List detailed information about a single format driver. The format
113 should be the short name reported in the --formats list, such as
114 GTiff.
115 --optfile file
116 Read the named file and substitute the contents into the
117 commandline options list. Lines beginning with # will be ignored.
118 Multi-word arguments may be kept together with double quotes.
119 --config key value
120 Sets the named configuration keyword to the given value, as opposed
121 to setting them as environment variables. Some common configuration
122 keywords are GDAL_CACHEMAX (memory used internally for caching in
123 megabytes) and GDAL_DATA (path of the GDAL 'data' directory).
124 Individual drivers may be influenced by other configuration
125 options.
126 --debug value
127 Control what debugging messages are emitted. A value of ON will
128 enable all debug messages. A value of OFF will disable all debug
129 messages. Another value will select only debug messages containing
130 that string in the debug prefix code.
131 --help-general
132 Gives a brief usage message for the generic GDAL commandline
133 options and exit.
134GDAL Fri Apr 22 2011 gdal_utilities(1)