<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>A .tif file in organized such that it begins with a very small header, is followed by all of the pixels, and then the file ends with the TIFF tags.</div><div>So, if one wanted to change or set for example the TIFF resolution tags, there are three resolution tags: XResolution=282, YResolution=283, and ResolutionUnit=296, it is possible and convenient to write TIFF tags 282, 283, and 296 that follow the pixels values, near the end of the .tif file, withOUT re-writing any of the pixel values. The TIFF utility tiffset provides a convenient way for changing TIFF tags withOUT reading and writing any of the pixel values, and even supports setting a TIFF tag to the contents of a file.</div><div><a href="http://www.remotesensing.org/libtiff/man/tiffset.1.html">http://www.remotesensing.org/libtiff/man/tiffset.1.html</a></div><div><br></div><div>However, I do not know that tiffset supports GeoTIFF tags.</div><div>Greg</div><br><div><div>On Mar 4, 2010, at 2:07 AM, Sigbjorn Herstad wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi,<br><br>This is my first post here, but have followed the list for several<br>years. I am trying to find a good way to edit a GeoTIFF-header. I have<br>looked at the Python-script and listgeo and geotifcp mentioned here:<br><a href="http://lists.osgeo.org/pipermail/gdal-dev/2008-April/016752.html">http://lists.osgeo.org/pipermail/gdal-dev/2008-April/016752.html</a><br><br>Using the Python-script updates the header of a given GeoTIFF- however<br>not with all parameters I need. Using the listgeo and geotifcp a new<br>file is written so update is not possible (like in the Python-script)<br>- ie reprocessing all files are necessary. I am thinking about<br>creating a Python-script which will update / delete / add certain<br>attributes from a GeoTIFF-file, but I am not sure if this is possible?<br>I do NOT want to create a new file with the changed GeoTIFF-header,<br>but update the already existing one.<br><br>Here are some of the TAGS I wish to DELETE or CHANGE:<br>GTModelTypeGeoKey (Short,1):<br>GTRasterTypeGeoKey (Short,1):<br>GTCitationGeoKey (Ascii,8):<br>GeogCitationGeoKey (Ascii,7):<br>GeogAngularUnitsGeoKey (Short,1):<br>ProjectedCSTypeGeoKey (Short,1):<br>ProjLinearUnitsGeoKey (Short,1):<br>GCS:<br>Datum:<br>Ellipsoid:<br><br>Greetings<br>SigTill</blockquote></div><br></body></html>