Jan,

  I use:
listgeo mygeotiff.tif > mygeotiff.gtt
geotifcp  -g mygeotiff.gtt nogeotags.tif mynewgeotiff.tif


FYI, I've been experimenting with GDAL's vrt format to sharpen my tiffs:

<VRTDataset rasterXSize="2890" rasterYSize="3451">
    :
    :
<VRTRasterBand dataType="Byte" band="1">
<Metadata />
<ColorInterp>Red</ColorInterp>
<KernelFilteredSource>
<SourceFilename relativeToVRT="1">NRT_123.tif</SourceFilename>
<SourceBand>1</SourceBand>
<SourceProperties RasterXSize="2890" RasterYSize="3451" DataType="Byte" BlockXSize="2890" BlockYSize="1" />
<SrcRect xOff="0" yOff="0" xSize="2890" ySize="3451" />
<DstRect xOff="0" yOff="0" xSize="2890" ySize="3451" />
<Kernel>
<Size>3</Size>
<Coefs>-0.111 -0.111 -0.111 -0.111 2 -0.111 -0.111 -0.111 -0.111</Coefs>
</Kernel>
</KernelFilteredSource>
</VRTRasterBand>
  :
  :
</VRTDataset>

My kernel tends to brighten the image a little (note the "2" in the kernel) as well as sharpen. To try it on your file, create a VRT file with gdal_translate -of VRT, then use a text editor to change the SimpleSource tags to KernelFilteredSource and add the Kernel. You can then create a sharpened tif by using the VRT as input to gdal_translate, os simply open the VRT in Quantum GIS to view the results.

Best Regards,
Brent Fraser


On 9/5/2011 8:46 AM, Jan Hartmann wrote:
Hi all,

Is there a quick way to add back georeferencing information to a geotif file that has been processed by Imagemagick? I have lots of georeferenced images that I want to sharpen up a bit, but ImageMagick throws the georeference headers away. Is there a way to transport them from the original file to the derived one?

Jan


_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to