Geoscience Reference
In-Depth Information
-mo "META-TAG=VALUE"
Passes a metadata key and value to set on the output dataset if possible.
-co "NAME=VALUE"
Passes a creation option to the output format driver. Multiple -co options may
be listed. See format specific documentation for legal creation options for each
format.
-gcp pixel line easting northing elevation
Add the indicated ground control point to the output dataset. This option may be
provided multiple times to provide a set of GCPs.
-q
Suppress progress monitor and other non-error output.
-sds
Copy all subdatasets of this file to individual output files. Use with formats like
HDF or OGDI that have subdatasets.
-stats
(from GDAL 1.8.0) Force (re)computation of statistics.
-norat
(from GDAL 2.0) Do not copy source RAT into destination dataset.
src_dataset
The source dataset name. It can be either file name, URL of data source or sub-
dataset name for multi-dataset files.
dst_dataset
The destination file name.
5.5.1 Convert and Scale Rasters
In its most basic form, without any options, gdal_translate copies an input
image to an output image:
gdal_translate input output
Converting image or data formats is almost as simple. The following example
converts an ENVI 4 image into a GeoTIFF image:
gdal_translate -of GTiff envi_image.img output.tif
GDAL is able to automatically retrieve the input image format. This is also the
case for input data formats and projection information (if this information is properly
stored in the input image). Multiple options can be combined, for example to convert
4 More image file formats share the same image file extension .img , such as ERDAS Imagine.
 
 
Search WWH ::




Custom Search