[gdal-dev] Is it possible for gdal_translate to perserve the external georeferencing information?

Nuo Tang conan_tang at hotmail.com
Tue Jun 21 01:46:35 EDT 2011


Hi All,

I am new here. Recently I was trying to compress all the tif (some of them
have been georeferenced in Arcgis) to jp2. This is the first time that I
touch the jp2- amazing! It has the similar quality but smaller size ( 1G
tiff= 45M jp2). However, there are some tif images which i have
georeferenced before (but not rectified). I used the gdalinfo command but-
it seems that gdalinfo (see below) cannot retrieve the external
georeferencing information (.aux.xml files). So, when I gdal_translate these
images to jp2- they do not have any valid georeferecing information either.
Any help will be appreciated.

*C:\bin\release-1600-gdal-1-8-0-mapserver-5-6-6>gdalinfo
w:\3512\3512_2a_181.tif
Driver: GTiff/GeoTIFF
Files: w:\3512\3512_2a_181.tif
       w:\3512\3512_2a_181.aux
       w:\3512\3512_2A_181.rrd
       w:\3512\3512_2a_181.tif.aux.xml
Size is 18808, 18808
Coordinate System is `'
Metadata:
  TIFFTAG_XRESOLUTION=798.91986
  TIFFTAG_YRESOLUTION=798.79858
  TIFFTAG_MINSAMPLEVALUE=0
  TIFFTAG_MAXSAMPLEVALUE=255
  TIFFTAG_RESOLUTIONUNIT=3 (pixels/cm)
Image Structure Metadata:
  INTERLEAVE=PIXEL
Corner Coordinates:
Upper Left  (    0.0,    0.0)
Lower Left  (    0.0,18808.0)
Upper Right (18808.0,    0.0)
Lower Right (18808.0,18808.0)
Center      ( 9404.0, 9404.0)
Band 1 Block=18808x1 Type=Byte, ColorInterp=Red
  Overviews: 4702x4702, 2351x2351, 1176x1176, 588x588, 294x294, 147x147,
74x74,
37x37
Band 2 Block=18808x1 Type=Byte, ColorInterp=Green
  Overviews: 4702x4702, 2351x2351, 1176x1176, 588x588, 294x294, 147x147,
74x74,
37x37
Band 3 Block=18808x1 Type=Byte, ColorInterp=Blue
  Overviews: 4702x4702, 2351x2351, 1176x1176, 588x588, 294x294, 147x147,
74x74,
37x37*

The georeferencing infomation is valid in Arcgis (although I did not rectify
it or make it as GeoTiff.)
[image: 1zq795y.jpg]
Cheers,
Nuo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20110621/aefa6fe2/attachment.html


More information about the gdal-dev mailing list