[mapguide-users] Exmple of Gdal index xml

Gary Morin gary.morin at keygis.co.uk
Thu Oct 4 14:34:49 EDT 2007


That's interesting, I used the download configuration file in MG studio and
in both cases it truncated the file.  The attached file was created by using
edit and then copying and pasting the contents.

Regards

Gary

 

-----Original Message-----
From: Frank Warmerdam [mailto:warmerdam at pobox.com] 
Sent: 04 October 2007 21:01
To: gary.morin at keygis.co.uk; MapGuide Users Mail List
Cc: 'Jason Birch'
Subject: Re: [mapguide-users] Exmple of Gdal index xml

Gary Morin wrote:
> I've corrected the bounds, one of the images did not upload correctly, as
to
> the truncated file, it's probably finger troubles by me.
> 
> Attached is a new version, which still gives the same error.

Gary,

This still seems truncated.  In particular it ends with a </Feature>
but it should end with </DataStore>

eg.
<?xml version="1.0" encoding="UTF-8"?>
<!-- Sample configuration file for Raster File Provider DataStore that
contains 
satellite photos -->
<DataStore xmlns:fdo="http://www.autodesk.com/isd/fdo" 
xmlns:gml="http://www.opengis.net/gml" 
xmlns:xs="http://www.w3.org/2001/XMLSchema" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns:xlink="http://www.w3.org/1999/xlink" 
xmlns="http://www.autodesk.com/isd/fdo" 
xsi:schemaLocation="http://www.autodesk.com/isd/fdo
  FdoDocument.xsd">
... a bunch of schema stuff...
   </xs:schema>
   <!-- Schema Overrides for Photos Feature Schema -->
   <SchemaMapping name="photos" provider="OSGeo.Gdal.3.0" 
xmlns="http://www.autodesk.com/isd/fdo/RasterFileProvider">
     <!-- Schema Overrides for Photo Feature Class -->
     <complexType name="PhotoType">
       <RasterDefinition name="photos">
         <Location name="/home/warmerda">
           <Feature name="Airport2">
             <band name="RGB" number="1">
               <Image name="utm.tif">
               </Image>
             </band>
           </Feature>
           <Feature name="Airport">
             <band name="RGB" number="1">
               <Image name="utm.tif">
                 <Georeference>
                   <InsertionPointX>200000.000000</InsertionPointX>
                   <InsertionPointY>1000000.000000</InsertionPointY>
                   <ResolutionX>1</ResolutionX>
                   <ResolutionY>1</ResolutionY>
                   <RotationX>0</RotationX>
                   <RotationY>0</RotationY>
                 </Georeference>
               </Image>
             </band>
           </Feature>
         </Location>
       </RasterDefinition>
     </complexType>
   </SchemaMapping>
</DataStore>

Best regards,
-- 
---------------------------------------+------------------------------------
--
I set the clouds in motion - turn up   | Frank Warmerdam,
warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGeo, http://osgeo.org
-------------- next part --------------
<?xml version="1.0" encoding="UTF-8"?>
<fdo:DataStore xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:gml="http://www.opengis.net/gml" xmlns:fdo="http://fdo.osgeo.org/schemas" xmlns:fds="http://fdo.osgeo.org/schemas/fds"><gml:DerivedCRS gml:id="Default"><gml:metaDataProperty><gml:GenericMetaData><fdo:SCExtentType>dynamic</fdo:SCExtentType><fdo:XYTolerance>0.001000</fdo:XYTolerance><fdo:ZTolerance>0.001000</fdo:ZTolerance></gml:GenericMetaData></gml:metaDataProperty><gml:remarks>System generated default FDO Spatial Context</gml:remarks><gml:srsName>Default</gml:srsName><gml:validArea><gml:boundingBox><gml:pos>394999.25242 424999.31774</gml:pos><gml:pos>425000.48226 455000.56758</gml:pos></gml:boundingBox></gml:validArea><gml:baseCRS><fdo:WKTCRS gml:id="Default"><gml:srsName>Default</gml:srsName><fdo:WKT>LOCAL_CS["*XY-MT*",LOCAL_DATUM["*X-Y*",10000],UNIT["Meter", 1],AXIS["X",EAST],AXIS["Y",NORTH]]</fdo:WKT></fdo:WKTCRS></gml:baseCRS><gml:definedByConversion xlink:href="http://fdo.osgeo.org/coord_conversions#identity"/><gml:derivedCRSType codeSpace="http://fdo.osgeo.org/crs_types">geographic</gml:derivedCRSType><gml:usesCS xlink:href="http://fdo.osgeo.org/cs#default_cartesian"/></gml:DerivedCRS><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fdo="http://fdo.osgeo.org/schemas" xmlns:gml="http://www.opengis.net/gml" xmlns:default="http://fdo.osgeo.org/schemas/feature/default" targetNamespace="http://fdo.osgeo.org/schemas/feature/default" elementFormDefault="qualified" attributeFormDefault="unqualified"><xs:annotation><xs:appinfo source="http://fdo.osgeo.org/schemas"/></xs:annotation><xs:element name="default" type="default:defaultType" abstract="false" substitutionGroup="gml:_Feature"><xs:key name="defaultKey"><xs:selector xpath=".//default"/><xs:field xpath="FeatId"/></xs:key></xs:element><xs:complexType name="defaultType" abstract="false" fdo:hasGeometry="false"><xs:annotation><xs:appinfo source="http://fdo.osgeo.org/schemas"/></xs:annotation><xs:complexContent><xs:extension base="gml:AbstractFeatureType"><xs:sequence><xs:element name="FeatId"><xs:annotation><xs:appinfo source="http://fdo.osgeo.org/schemas"/></xs:annotation><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="256"/></xs:restriction></xs:simpleType></xs:element><xs:element name="Image" type="fdo:RasterPropertyType" fdo:defaultImageXSize="1024" fdo:defaultImageYSize="1024" fdo:srsName="Default"><xs:annotation><xs:appinfo source="http://fdo.osgeo.org/schemas"><fdo:DefaultDataModel dataModelType="Bitonal" dataType="Unknown" organization="Pixel" bitsPerPixel="1" tileSizeX="256" tileSizeY="256"/></xs:appinfo></xs:annotation></xs:element></xs:sequence></xs:extension></xs:complexContent></xs:complexType></xs:schema><SchemaMapping xmlns="http://fdogrfp.osgeo.org/schemas" provider="OSGeo.Gdal.3.2" name="default"><complexType name="defaultType"><complexType name="RasterTypeType"><RasterDefinition name="images"><Location name="D:\Projects\MGDemo\Raster\"><Feature name="Sd93ne.tif"><Band name="RGB" number="1"><Image frame="1" name="Sd93ne.tif"><Bounds><MinX>394999.25242</MinX><MinY>434999.31774</MinY><MaxX>400000.50226</MaxX><MaxY>440000.56758</MaxY></Bounds></Image></Band></Feature><Feature name="Sd93se.tif"><Band name="RGB" number="1"><Image frame="1" name="Sd93se.tif"><Bounds><MinX>394999.25242</MinX><MinY>429999.31774</MinY><MaxX>400000.50226</MaxX><MaxY>435000.56758</MaxY></Bounds></Image></Band></Feature><Feature name="Sd94se.tif"><Band name="RGB" number="1"><Image frame="1" name="Sd94se.tif"><Bounds><MinX>394999.25242</MinX><MinY>439999.31774</MinY><MaxX>400000.50226</MaxX><MaxY>445000.56758</MaxY></Bounds></Image></Band></Feature><Feature name="Se02ne.tif"><Band name="RGB" number="1"><Image frame="1" name="Se02ne.tif"><Bounds><MinX>404999.23242</MinX><MinY>424999.31774</MinY><MaxX>410000.48226</MaxX><MaxY>430000.56758</MaxY></Bounds></Image></Band></Feature><Feature name="Se03ne.tif"><Band name="RGB" number="1"><Image frame="1" name="Se03ne.tif"><Bounds><MinX>404999.23242</MinX><MinY>434999.31774</MinY><MaxX>410000.48226</MaxX><MaxY>440000.56758</MaxY></Bounds></Image></Band></Feature><Feature name="Se03nw.tif"><Band name="RGB" number="1"><Image frame="1" name="Se03nw.tif"><Bounds><MinX>399999.23242</MinX><MinY>434999.31774</MinY><MaxX>405000.48226</MaxX><MaxY>440000.56758</MaxY></Bounds></Image></Band></Feature><Feature name="Se03se.tif"><Band name="RGB" number="1"><Image frame="1" name="Se03se.tif"><Bounds><MinX>404999.23242</MinX><MinY>429999.31774</MinY><MaxX>410000.48226</MaxX><MaxY>435000.56758</MaxY></Bounds></Image></Band></Feature><Feature name="Se03sw.tif"><Band name="RGB" number="1"><Image frame="1" name="Se03sw.tif"><Bounds><MinX>399999.23242</MinX><MinY>429999.31774</MinY><MaxX>405000.48226</MaxX><MaxY>435000.56758</MaxY></Bounds></Image></Band></Feature><Feature name="Se04ne.tif"><Band name="RGB" number="1"><Image frame="1" name="Se04ne.tif"><Bounds><MinX>404999.23242</MinX><MinY>444999.31774</MinY><MaxX>410000.48226</MaxX><MaxY>450000.56758</MaxY></Bounds></Image></Band></Feature><Feature name="Se04nw.tif"><Band name="RGB" number="1"><Image frame="1" name="Se04nw.tif"><Bounds><MinX>399999.23242</MinX><MinY>444999.31774</MinY><MaxX>405000.48226</MaxX><MaxY>450000.56758</MaxY></Bounds></Image></Band></Feature><Feature name="Se04se.tif"><Band name="RGB" number="1"><Image frame="1" name="Se04se.tif"><Bounds><MinX>404999.23242</MinX><MinY>439999.31774</MinY><MaxX>410000.48226</MaxX><MaxY>445000.56758</MaxY></Bounds></Image></Band></Feature><Feature name="Se04sw.tif"><Band name="RGB" number="1"><Image frame="1" name="Se04sw.tif"><Bounds><MinX>399999.23242</MinX><MinY>439999.31774</MinY><MaxX>405000.48226</MaxX><MaxY>445000.56758</MaxY></Bounds></Image></Band></Feature><Feature name="Se05se.tif"><Band name="RGB" number="1"><Image frame="1" name="Se05se.tif"><Bounds><MinX>404999.23242</MinX><MinY>449999.31774</MinY><MaxX>410000.48226</MaxX><MaxY>455000.56758</MaxY></Bounds></Image></Band></Feature><Feature name="Se05sw.tif"><Band name="RGB" number="1"><Image frame="1" name="Se05sw.tif"><Bounds><MinX>399999.23242</MinX><MinY>449999.31774</MinY><MaxX>405000.48226</MaxX><MaxY>455000.56758</MaxY></Bounds></Image></Band></Feature><Feature name="Se12ne.tif"><Band name="RGB" number="1"><Image frame="1" name="Se12ne.tif"><Bounds><MinX>414999.36242</MinX><MinY>424999.31774</MinY><MaxX>420000.61226</MaxX><MaxY>430000.56758</MaxY></Bounds></Image></Band></Feature><Feature name="Se12nw.tif"><Band name="RGB" number="1"><Image frame="1" name="Se12nw.tif"><Bounds><MinX>409999.23242</MinX><MinY>424999.31774</MinY><MaxX>415000.48226</MaxX><MaxY>430000.56758</MaxY></Bounds></Image></Band></Feature><Feature name="Se13ne.tif"><Band name="RGB" number="1"><Image frame="1" name="Se13ne.tif"><Bounds><MinX>414999.36242</MinX><MinY>434999.31774</MinY><MaxX>420000.61226</MaxX><MaxY>440000.56758</MaxY></Bounds></Image></Band></Feature><Feature name="Se13nw.tif"><Band name="RGB" number="1"><Image frame="1" name="Se13nw.tif"><Bounds><MinX>409999.23242</MinX><MinY>434999.31774</MinY><MaxX>415000.48226</MaxX><MaxY>440000.56758</MaxY></Bounds></Image></Band></Feature><Feature name="Se13se.tif"><Band name="RGB" number="1"><Image frame="1" name="Se13se.tif"><Bounds><MinX>414999.36242</MinX><MinY>429999.31774</MinY><MaxX>420000.61226</MaxX><MaxY>435000.56758</MaxY></Bounds></Image></Band></Feature><Feature name="Se13sw.tif"><Band name="RGB" number="1"><Image frame="1" name="Se13sw.tif"><Bounds><MinX>409999.23242</MinX><MinY>429999.31774</MinY><MaxX>415000.48226</MaxX><MaxY>435000.56758</MaxY></Bounds></Image></Band></Feature><Feature name="Se14ne.tif"><Band name="RGB" number="1"><Image frame="1" name="Se14ne.tif"><Bounds><MinX>414999.23242</MinX><MinY>444999.31774</MinY><MaxX>420000.48226</MaxX><MaxY>450000.56758</MaxY></Bounds></Image></Band></Feature><Feature name="Se14nw.tif"><Band name="RGB" number="1"><Image frame="1" name="Se14nw.tif"><Bounds><MinX>409999.23242</MinX><MinY>444999.31774</MinY><MaxX>415000.48226</MaxX><MaxY>450000.56758</MaxY></Bounds></Image></Band></Feature><Feature name="Se14se.tif"><Band name="RGB" number="1"><Image frame="1" name="Se14se.tif"><Bounds><MinX>414999.23242</MinX><MinY>439999.31774</MinY><MaxX>420000.48226</MaxX><MaxY>445000.56758</MaxY></Bounds></Image></Band></Feature><Feature name="Se14sw.tif"><Band name="RGB" number="1"><Image frame="1" name="Se14sw.tif"><Bounds><MinX>409999.23242</MinX><MinY>439999.31774</MinY><MaxX>415000.48226</MaxX><MaxY>445000.56758</MaxY></Bounds></Image></Band></Feature><Feature name="Se22nw.tif"><Band name="RGB" number="1"><Image frame="1" name="Se22nw.tif"><Bounds><MinX>419999.23242</MinX><MinY>424999.31774</MinY><MaxX>425000.48226</MaxX><MaxY>430000.56758</MaxY></Bounds></Image></Band></Feature><Feature name="Se23nw.tif"><Band name="RGB" number="1"><Image frame="1" name="Se23nw.tif"><Bounds><MinX>419999.23242</MinX><MinY>434999.31774</MinY><MaxX>425000.48226</MaxX><MaxY>440000.56758</MaxY></Bounds></Image></Band></Feature><Feature name="Se23sw.tif"><Band name="RGB" number="1"><Image frame="1" name="Se23sw.tif"><Bounds><MinX>419999.23242</MinX><MinY>429999.31774</MinY><MaxX>425000.48226</MaxX><MaxY>435000.56758</MaxY></Bounds></Image></Band></Feature><Feature name="Se24sw.tif"><Band name="RGB" number="1"><Image frame="1" name="Se24sw.tif"><Bounds><MinX>419999.23242</MinX><MinY>439999.31774</MinY><MaxX>425000.48226</MaxX><MaxY>445000.56758</MaxY></Bounds></Image></Band></Feature></Location></RasterDefinition></complexType></complexType></SchemaMapping></fdo:DataStore>


More information about the mapguide-users mailing list