Geoscience Reference
In-Depth Information
The following command creates a vector with the contours of seven GeoTIFF
to convert the ESRI Shapefile vector to a KML file that can be visualized in Google
Earth.
ls *.tif
3128535974-AB.tif
3146933672-CA.tif
3147135008-AA.tif
3200037126-CB.tif
3214834843-DC.tif
3216236173-BA.tif
3282836015-BB.tif
gdaltindex index.shp *.tif
ogr2ogr -t_srs epsg:4326 -f KML index.kml index.shp
7.2 gdaladdo
With
gdaladdo
overview images can be built. These overviews can be included
within the image itself or can be built as external files. Several algorithms for the
downsampling are supported (selected with the option
-r
). Image overviews are
typically used to display reduced resolution overviews more quickly than could be
done by reading the full resolution data followed by a downsampling.
Usage: gdaladdo [-r {nearest, average, gauss, cubic,
→
average_mp, average_magphase, mode}] [-ro] [-clean] [-q]
→
[--help-general] filename levels
-r
(from GDAL 1.6) resampling algorithm: nearest (default), average, gauss, cubic,
average_mp, average_magphase, mode.
-b
(fromGDAL 1.10) Select an input band for overview generation. Band numbering
starts from 1. Multiple -b switches may be used to select a set of input bands to
generate overviews.
-ro
open the dataset in read-only mode, in order to generate external overview (for
GeoTIFF datasets especially).
Search WWH ::
Custom Search