[FWTools] GetGeoTransform with AUX.XML files

Chris Ryan cryan at csse.com.au
Wed Oct 12 00:02:45 EST 2011


Hi All ,

Not sure if this is the right mailing list but I'm having problems with my application that uses the FWTools 2.4.7 windows binaries via a Delphi wrapper. I'm finding that the existence of a .aux.xml file for an ECW image is causing the GetGeoTransform function to fail. If I delete the XML file this function returns the expected (305000, 0.1, 0, 6260000, 0, -0.1) but if this file is present, it returns (0, 1, 0, 0, 0, 1). Any pointers from the experts?

The contents of the XML file is:

<PAMDataset>
<SRS>PROJCS[&quot;GDA_1994_MGA_Zone_56&quot;,GEOGCS[&quot;GCS_GDA_1994&quot;,DATUM[&quot;Geocentric_Datum_of_Australia_1994&quot;,SPHEROID[&quot;GRS_1980&quot;,6378137.0,298.257222101]],PRIMEM[&quot;Greenwich&quot;,0.0],UNIT[&quot;Degree&quot;,0.0174532925199433]],PROJECTION[&quot;Transverse_Mercator&quot;],PARAMETER[&quot;False_Easting&quot;,500000.0],PARAMETER[&quot;False_Northing&quot;,10000000.0],PARAMETER[&quot;Central_Meridian&quot;,153.0],PARAMETER[&quot;Scale_Factor&quot;,0.9996],PARAMETER[&quot;Latitude_Of_Origin&quot;,0.0],UNIT[&quot;Meter&quot;,1.0]]</SRS>
  <PAMRasterBand band="1">
    <Metadata>
      <MDI key="LAYER_TYPE">athematic</MDI>
    </Metadata>
  </PAMRasterBand>
  <PAMRasterBand band="2">
    <Metadata>
      <MDI key="LAYER_TYPE">athematic</MDI>
    </Metadata>
  </PAMRasterBand>
  <PAMRasterBand band="3">
    <Metadata>
      <MDI key="LAYER_TYPE">athematic</MDI>
    </Metadata>
  </PAMRasterBand>
</PAMDataset>

Cheers,

Chris Ryan

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/fwtools/attachments/20111012/a04887bf/attachment.htm 


More information about the FWTools mailing list