[gdal-dev] Re: Copy only georeference between two images

2010-09-14 Thread canduc17
I have the correct georef in the first image and the wrong in the second. I would like to copy the georef of the first into the second. I will try mogrify, but I think that the easier way is to create a C program as suggested above by Giacomo. -- View this message in context: http://osgeo-org.1

Re: [gdal-dev] Re: Copy only georeference between two images

2010-09-14 Thread Ralf Suhr
You have a wrong georeferentiation? I think it is better to transform this "wrong" georeferentiation. The quick way: strip geotiff information with mogrify -strip. Now the information from world file will be used. Gr Ralf Am Dienstag 14 September 2010 12:23:08 schrieb canduc17: > My files have

[gdal-dev] Re: Copy only georeference between two images

2010-09-14 Thread canduc17
My files have both the georeferentiation, but one is correct and the other one is wrong. And the georeferentiation is INSIDE the geotiff file, not in a separated .tfw file. I would like to obtain only one file as output. To have only one GEOTiff image with the corrected georef... -- View this me

Re: [gdal-dev] Re: Copy only georeference between two images

2010-09-14 Thread Ralf Suhr
Hi canduc17, Am Dienstag 14 September 2010 11:17:07 schrieb canduc17: > Thank you everyone. > I thought it was simpler. > > @Ralf Suhr-3 > I have produced the ftw file as you suggested: >10.00 > 0.00 > 0.00 > -10.00 >

Re: [gdal-dev] Re: Copy only georeference between two images

2010-09-14 Thread Jean-Claude REPETTO
Le 14/09/2010 11:17, canduc17 a écrit : @Ralf Suhr-3 I have produced the ftw file as you suggested: 10.00 0.00 0.00 -10.00 584018.562500 5147058.50 but why the values are different from gd

[gdal-dev] Re: Copy only georeference between two images

2010-09-14 Thread canduc17
Thank you everyone. I thought it was simpler. @Ralf Suhr-3 I have produced the ftw file as you suggested: 10.00 0.00 0.00 -10.00 584018.562500 5147058.50 but why the values are different from gda

Re: [gdal-dev] Re: Copy only georeference between two images

2010-09-13 Thread christian . mueller
I see your image is LZW compressed, AFAIK this is the same for png images. Try the following 1) use gdal_translate to create a png file and a corresponding world file from your shifted image. 2) Open the world file with an editor and adjust the values 3) use gdal_translate to create a geotiff

Re: [gdal-dev] Re: Copy only georeference between two images

2010-09-13 Thread Ivan Lucena
://gdal.org/gdal_translate.html http://gdal.org/classGDALDataset.html#e2d2e231f6d632f8c2b2cf0078a01150 > ---Original Message--- > From: canduc17 > To: gdal-dev@lists.osgeo.org > Subject: [gdal-dev] Re: Copy only georeference between two images > Sent: Sep 13 '10 10

[gdal-dev] Re: Copy only georeference between two images

2010-09-13 Thread canduc17
It is the same, but the georef information is a little bit shifted. So I have to copy the first georef into the second image. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Copy-only-georeference-between-two-images-tp5526582p5526728.html Sent from the GDAL - Dev mailing

Re: [gdal-dev] Re: Copy only georeference between two images

2010-09-13 Thread christian . mueller
And what is the output of the second image ? Quoting canduc17 : My case is the first one: with gdalinfo on one of my images I obtain: Driver: GTiff/GeoTIFF Files: AVN_CLS57_ALAV2A127252720_20080614_20100906.tif Size is 8505, 8378 Coordinate System is: PROJCS["WGS 84 / UTM zone 31N", GEOGCS

[gdal-dev] Re: Copy only georeference between two images

2010-09-13 Thread canduc17
My case is the first one: with gdalinfo on one of my images I obtain: Driver: GTiff/GeoTIFF Files: AVN_CLS57_ALAV2A127252720_20080614_20100906.tif Size is 8505, 8378 Coordinate System is: PROJCS["WGS 84 / UTM zone 31N", GEOGCS["WGS 84", DATUM["WGS_1984", SPHEROID["WGS 84",6