[Gdal-dev] Save/restore Geo from a TIFF with GDAL?
bfraser at geoanalytic.com
Tue Jan 9 13:22:59 EST 2007
I think the closest you could get with GDAL would be:
1. use gdalinfo before the edit to see the srs definition (e.g.
2. edit the tif file, save it as modified.tif
3. use gdal_translate to assign the original srs:
gdal_translate -a_srs EPSG:32608 modified.tif
Not quite as script-able as the geotiff tools....
Calgary, Alberta, Canada
----- Original Message -----
From: "Ben Discoe" <ben at vterrain.org>
To: "'gdal-dev'" <gdal-dev at lists.maptools.org>
Sent: Monday, January 08, 2007 10:54 PM
Subject: [Gdal-dev] Save/restore Geo from a TIFF with GDAL?
> In the GeoTIFF FAQ (http://remotesensing.org/geotiff/faq.html) under the
> entry "How do I preserve GeoTIFF info when editing my image?", it explains
> you can do this:
> listgeo -no_norm original.tif > original.geo
> geotifcp -g original.geo modified.tif modified_geotiff.tif
> For those of us with command-line tools from gdal but not from libgeotiff,
> is it possible to do the same? I tried to figure out how to do it with
> gdal_translate, but it was not at all clear.
> Gdal-dev mailing list
> Gdal-dev at lists.maptools.org
More information about the Gdal-dev