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

Ralf Suhr Ralf.Suhr at itc-halle.de
Tue Sep 14 05:44:16 EDT 2010


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.0000000000
>             0.0000000000
>             0.0000000000
>           -10.0000000000
>        584018.5625000000
>       5147058.5000000000
> but why the values are different from gdalinfo?

the world file coordinate is for the upper left corner. gdalinfo print 
coordinates from center of pixel. The difference (half pixelsize) is correct.

> gdalinfo img.tif | grep Origin
> Origin = (584013.562500000000000,5147063.500000000000000)
> And what I'm suppose to do whith that? What is the file without
> georeferentiation?

If your filename without UTM georeferentiation is secound.tif you have to copy 
img.tfw to secound.tfw

Gr
Ralf

> 
> @Ivan Lucena
> Unfortunately I don't have python support in my GDAL installation and I
> cannot recompile it.
> Using gdal_translate is ok, but is there another way to avoid rewriting on
> disk the image (which is quite big)?
> Is not possible to "paste" the info obtained by gdalinfo into my second
> image?
> 
> @christian.mueller-
> If it's exist, I would prefer an automatic way to solve my problem...
> 


More information about the gdal-dev mailing list