

When the edited file is opened in a mapping software application e.g. Global Mapper, the software will be unable to detect any geo-referencing information, as shown below.

There is a way to apply back the geo-referencing information from the original GeoTiff file. As long as the edited image pixel sizes (width and height) remain the same as the original GeoTiff image, we can copy the GeoTiff metadata from the original file to the edited file using the listgeo and geotifcp executables. These programs can be downloaded as part of FWTools.
The following shows how to use the listgeo and geotifcp executables.
- Open up a command prompt. Type in the following:
C:\> listgeo -no_norm original.tif > metadata.geo
The GeoTiff file's geo-referencing metadata is copied out from the input original.tif and written to the output file metadata.geo. - Next, type in the following:
C:\> geotifcp -g metadata.geo edited.tif output.tif
The geo-referencing info in the metadata.geo file is applied to the edited.tif file and written out to output.tif. When the output.tif file is loaded in a mapping application, the image is placed in the correct geographic location.