Geoscience Reference
In-Depth Information
Another example is to shift the georeferenced bounds of an image with half a
pixel to the upper right.
gdalinfo flanders.tif
...
Upper Left
( 3799000.000, 3168000.000) (
2d29'13.31"E,
51d22'51.26"N)
Lower Left
( 3799000.000, 3075000.000) (
2d37'15.20"E,
50d32'59.67"N)
Upper Right ( 4032000.000, 3168000.000) (
5d49'52.09"E,
51d32'53.97"N)
Lower Right ( 4032000.000, 3075000.000) (
5d54'21.11"E,
50d42'50.06"N)
Center
( 3915500.000, 3121500.000) (
4d12'32.71"E, 51d
3'36.46"N)
gdalmanage copy flanders.tif flanders_shifted.tif
gdal_edit.py -a_ullr 3799012.500 3168012.500 4032012.500
3075012.500 flanders_shifted.tif
gdalinfo flanders_shifted.tif
...
Upper Left
( 3799012.500, 3168012.500) (
2d29'13.89"E,
51d22'51.70"N)
Lower Left ( 3799012.500, 3075012.500)
(
2d37'15.77"E, 50d33'
0.11"N)
Upper Right ( 4032012.500, 3168012.500) (
5d49'52.71"E,
51d32'54.40"N)
Lower Right ( 4032012.500, 3075012.500) (
5d54'21.72"E,
50d42'50.48"N)
Center
( 3915512.500, 3121512.500) ( 4d12'33.30"E, 51d
3'36.89"N)
5.5 gdal_translate
The gdal_translate utility is the Swiss knife of raster utilities. It can convert
raster file formats, resample, rescale and compress raster files. It can also subset
a raster image, either spatially by cropping the image to a spatial (sub)region or
spectrally by extracting a selection from the available bands. Raster file attributes
such as metadata, no-data values and ground control points (GCP) can also be
changed in the target raster file. To edit these attributes in the source file directly, use
gdal_edit.py and avoid a raster copy.
 
 
Search WWH ::




Custom Search