[Gdal-dev] GDAL and .tab file

Sylvain Rioux sylvain at softmaptech.com
Thu Jul 29 13:37:30 EDT 2004


Hi,

I have some tiff and ecw files that are georeferenced with a tab file like :

!table
!version 300
!charset WindowsLatin1

Definition Table
  File "f20k_027_036_l2e_h_o_gr_v20.ecw"
  Type "RASTER"
  (562487.00000,2335396.00000) (0,0) Label "Pt 1",
  (582500.08333,2335396.00000) (7563.00000,0) Label "Pt 2",
  (582500.08333,2315382.91667) (7563.00000,7563.00000) Label "Pt 3",
  (562487.00000,2315382.91667) (0,7563.00000) Label "Pt 4"
  CoordSys Earth Projection 3,  1002, "m", 0, 46.8, 45.898918964419,
47.696014502038,  600000,  2200000
  Units "m"

I think that it has been asked in the past but I tried with the last version
of GDAL (using gdalinfo.exe) and the coordinate system is blank like :

Driver: ECW/ERMapper Compressed Wavelets
Size is 7564, 7564
Coordinate System is `'
Origin = (562487.000000,2335396.000000)
Pixel Size = (2.645833,-2.645833)
Corner Coordinates:
Upper Left  (  562487.000, 2335396.000)
Lower Left  (  562487.000, 2315382.917)
Upper Right (  582500.083, 2335396.000)
Lower Right (  582500.083, 2315382.917)
Center      (  572493.542, 2325389.458)
Band 1 Block=7564x1 Type=Byte, ColorInterp=Undefined
  Overviews: arbitrary
Band 2 Block=7564x1 Type=Byte, ColorInterp=Undefined
  Overviews: arbitrary
Band 3 Block=7564x1 Type=Byte, ColorInterp=Undefined
  Overviews: arbitrary

Is there something we can do to at least translate these image to a known
format like GeoTIFF? Or can we translate .tab files to something like wkt
which can then be used with gdal_translate.exe?

Thanks!

Sylvain




More information about the Gdal-dev mailing list