Re: [gdal-dev] adding georeferencing information
Found the answer to this one: use the listgeo and geotifcp utilities from the Geotiff library (http://trac.osgeo.org/geotiff/). They are not included in the gdal utilities, so you need them install them yourself. There is a debian package for it (geotiff-bin), and I guess there are binary versions for other distributions. Alternatively, you could use fwtools or osgeo4w. Jan On 09/05/2011 04:46 PM, 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
Re: [gdal-dev] adding georeferencing information
Thanks Jean-Claude, I'll try it out as soon as I manage to compile GDAL trunk. It's still broken at the moment ... Jan On 09/22/2011 02:26 PM, Jean-Claude Repetto wrote: Le 22/09/2011 13:37, Jan Hartmann a écrit : Found the answer to this one: use the listgeo and geotifcp utilities from the Geotiff library (http://trac.osgeo.org/geotiff/). They are not included in the gdal utilities, so you need them install them yourself. Jan There is a new GDAL utility program, that has been added recently into trunk by Even, for that purpose. It works for ECW files, but I don't know if it works with Tiff files. Its name is gdal_edit.py : Usage: gdal_edit [--help-general] [-a_srs srs_def] [-a_ullr ulx uly lrx lry] [-tr xres yres] [-unsetgt] [-a_nodata value] [-mo META-TAG=VALUE]* datasetname Edit in place various information of an existing GDAL dataset. Jean-Claude ___ 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
Re: [gdal-dev] adding georeferencing information
Hi Andrew, I must have overlooked your mail. Applygeo is not mentioned on the libgeotiff page, but I found the following posting: http://osgeo-org.1803224.n2.nabble.com/Copy-projection-between-GeoTIFFs-td2065142.html Thanks, Jan On 09/22/2011 04:24 PM, Andrew Brooks wrote: On 22 September 2011 12:37, Jan Hartmann j.l.h.hartm...@uva.nl mailto:j.l.h.hartm...@uva.nl wrote: Found the answer to this one: use the listgeo and geotifcp utilities from the Geotiff library (http://trac.osgeo.org/geotiff/). Did you not receive the email I sent to the list on 6 September? I said you should use the applygeo utility from the libgeotiff distribution, it is better than the listgeo/geotifcp combination. Andrew ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev
Re: [gdal-dev] adding georeferencing information
On 5 September 2011 15:46, Jan Hartmann j.l.h.hartm...@uva.nl wrote: Is there a quick way to add back georeferencing information to a geotif file that has been processed by Imagemagick? There should be an applygeo utility distributed with the geotiff library which can do this. Andrew ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev
Re: [gdal-dev] adding georeferencing information
Is there a quick way to add back georeferencing information to a geotif file that has been processed by Imagemagick? also see http://code.google.com/p/maphew/source/browse/gis/gdal_extras/bin/gdalcopyproj.py cheers, matt wilkie Geomatics Analyst Information Management and Technology Yukon Department of Environment 10 Burns Road * Whitehorse, Yukon * Y1A 4Y9 867-667-8133 Tel * 867-393-7003 Fax http://environmentyukon.gov.yk.ca/geomatics/ ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev
Re: [gdal-dev] adding georeferencing information
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 / ColorInterpRed/ColorInterp KernelFilteredSource SourceFilename relativeToVRT=1NRT_123.tif/SourceFilename SourceBand1/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 Size3/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