[gdal-dev] gdal_translate give upside down result for Geotiff

theuns theunsheydenrych at gmail.com
Thu Mar 11 07:11:04 EST 2010


Hi
I have scanned in maps, that needs to be georeferenced.
I usually did the georeferencing in ArcMap. I would like to move a away
from propriety software to do this.

I used gdal_translate to georeference the supplied tif file. The result
is "upside down".
So i went back ArcMap, load the original un-georeferenced tif file and
it is displayed correctly. I then loaded the gdal_translate produced
georeferenced file, and it display "upside down".

What am i missing?

When generating a preview of the gdal_translated georeferenced tiff file
in the windows explorer it displays correctly.
Maybe this suggest that some tag or flag in the gdal_translate produced
file is not set?
I get the same result with the FWTools 1.3.5(very old) and FWTools
2.4.7 

Here is the gdal_translate command i used.
gdal_translate -a_ullr 28.4696526275608 4.96918660287081 30.029965644484
6.29703349282297 E:\Gis\wt250cd_sb35-8_0528_kalemie_2005_ed1.tif E:\Gis
\wt250cd_sb35-8_0528_kalemie_2005_referenced.tif

Here is the gdalinfo information on the original tif file.
gdalinfo.exe e:\Gis\wt250cd_sb35-8_0528_kalemie_2005_ed1.tif

Driver: GTiff/GeoTIFF

Files: e:\Gis\wt250cd_sb35-8_0528_kalemie_2005_ed1.tif

Size is 8175, 6938

Coordinate System is `'

Metadata:

  TIFFTAG_SOFTWARE=Adobe Photoshop CS3 Windows

  TIFFTAG_DATETIME=2008:06:24 10:21:23

  TIFFTAG_XRESOLUTION=300

  TIFFTAG_YRESOLUTION=300

  TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch)

Image Structure Metadata:

  COMPRESSION=LZW

  INTERLEAVE=PIXEL

Corner Coordinates:

Upper Left  (    0.0,    0.0)

Lower Left  (    0.0, 6938.0)

Upper Right ( 8175.0,    0.0)

Lower Right ( 8175.0, 6938.0)

Center      ( 4087.5, 3469.0)

Band 1 Block=8175x10 Type=Byte, ColorInterp=Red

Band 2 Block=8175x10 Type=Byte, ColorInterp=Green

Band 3 Block=8175x10 Type=Byte, ColorInterp=Blue

Best Regards
Theuns Heydenrych



More information about the gdal-dev mailing list