[gdal-dev] MrSID Auxiliary File Reading

MapGeek estrada.adam at gmail.com
Tue Jul 22 17:21:26 EDT 2008


All,
    I have a series of MrSID images and none of them have any spatial
information in the header.  I know that this is common for older
versions of the MrSID format and there are ways to get around this.  I
have seen a very common way of doing this in ArcCatalog by "applying"
the projection in an XML file.  I have one such XML file that
references the ArcGIS 9.2 XML schema and the projection in this case
is referenced in the WKT tags.  When I run Gdalinfo on the file, it
recognizes that there is an XML file that goes with the .sid but
apparently does not recognize the ESRI Schema.

- <Metadata domain="xml:ESRI" format="xml">
- <GeodataXform xsi:type="typens:IdentityXform" xmlns:xsi="http://
www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/
XMLSchema" xmlns:typens="http://www.esri.com/schemas/ArcGIS/9.2">
- <SpatialReference xsi:type="typens:ProjectedCoordinateSystem">
 
<WKT>PROJCS["NAD_1983_HARN_StatePlane_Washington_North_FIPS_4601_Feet",GEOGCS["GCS_North_American_1983_HARN",DATUM["D_North_American_1983_HARN",SPHEROID["GRS_1980",
6378137.0,298.257222101]],PRIMEM["Greenwich",0.0],UNIT["Degree",
0.0174532925199433]],PROJECTION["Lambert_Conformal_Conic"],PARAMETER["False_Easting",
1640416.666666667],PARAMETER["False_Northing",
0.0],PARAMETER["Central_Meridian",-120.8333333333333],PARAMETER["Standard_Parallel_1",
47.5],PARAMETER["Standard_Parallel_2",
48.73333333333333],PARAMETER["Latitude_Of_Origin",47.0],UNIT["Foot_US",
0.3048006096012192]]</WKT>
  <XOrigin>-117104299.999822</XOrigin>
  <YOrigin>-99539599.9998605</YOrigin>
  <XYScale>15624.999984</XYScale>
  <ZOrigin>0</ZOrigin>
  <ZScale>8192</ZScale>
  <MOrigin>0</MOrigin>
  <MScale>16000</MScale>
  <XYTolerance>5.12000000524288E-04</XYTolerance>
  <ZTolerance>2</ZTolerance>
  <MTolerance>0.0005</MTolerance>
  <HighPrecision>true</HighPrecision>
  </SpatialReference>
  </GeodataXform>
  </Metadata>

Can anyone lend some advise on how to get GDAL to read the projection
info in these XML files?

Thanks,
Adam


More information about the gdal-dev mailing list