[mapguide-users] Raster Config XML File

Gordon McKenzie gord.mckenzie at canam.com
Mon Jul 14 10:35:16 EDT 2008


I am looking for some help on creating a raster config XML file.  I want to
attach an ESRI .asc grid file to AutoCAD Map.  I have a config file for
raster that I pinched from an AutoCAD Map code sample but I have not been
able to modify it in such as way as seems to work.  I can attach the raster
programatically but it complains about the "band" tag in the XML.  As this
is not bitmap of any sort I guess I can see why but I can't seem  to find
enough documentation to show me what to do.

 

Does anyone have a sample config file for a raster grd or can you point me
to some documentation resources that explain the contents.  I have found
little bits and pieces but nothing complete enough to get the job done.  Any
help would be greatly appreciated.   I have included my XML in case it is
helpful in answering

 

Thanks

 

<?xml version="1.0" encoding="UTF-8" ?> 

 
<file:///C:\Documents%20and%20Settings\mckgor01\Local%20Settings\Temp\tempSu
rface.xml##> - <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">

 
<file:///C:\Documents%20and%20Settings\mckgor01\Local%20Settings\Temp\tempSu
rface.xml##> - <gml:DerivedCRS gml:id="Default">

 
<file:///C:\Documents%20and%20Settings\mckgor01\Local%20Settings\Temp\tempSu
rface.xml##> - <gml:metaDataProperty>

 
<file:///C:\Documents%20and%20Settings\mckgor01\Local%20Settings\Temp\tempSu
rface.xml##> - <gml:GenericMetaData>

  <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> 

 
<file:///C:\Documents%20and%20Settings\mckgor01\Local%20Settings\Temp\tempSu
rface.xml##> - <gml:validArea>

 
<file:///C:\Documents%20and%20Settings\mckgor01\Local%20Settings\Temp\tempSu
rface.xml##> - <gml:boundingBox>

  <gml:pos>550000.000000 6500000.000000</gml:pos> 

  <gml:pos>552000.000000 6502000.000000</gml:pos> 

  </gml:boundingBox>

  </gml:validArea>

  <gml:baseCRS xlink:href="http://fdo.osgeo.org/crs#default_cartesian" /> 

  <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>

 
<file:///C:\Documents%20and%20Settings\mckgor01\Local%20Settings\Temp\tempSu
rface.xml##> - <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://fdo.osgeo.org/schemas/feature/rasters"
xmlns:fdo="http://fdo.osgeo.org/schemas"
xmlns:gml="http://www.opengis.net/gml"
xmlns:rasters="http://fdo.osgeo.org/schemas/feature/rasters"
elementFormDefault="qualified" attributeFormDefault="unqualified">

 
<file:///C:\Documents%20and%20Settings\mckgor01\Local%20Settings\Temp\tempSu
rface.xml##> - <xs:element name="tempSurface" type="rasters:tempSurfaceType"
abstract="false" substitutionGroup="gml:_Feature">

 
<file:///C:\Documents%20and%20Settings\mckgor01\Local%20Settings\Temp\tempSu
rface.xml##> - <xs:key name="tempSurfaceKey">

  <xs:selector xpath=".//tempSurface" /> 

  <xs:field xpath="Id" /> 

  </xs:key>

  </xs:element>

 
<file:///C:\Documents%20and%20Settings\mckgor01\Local%20Settings\Temp\tempSu
rface.xml##> - <xs:complexType name="tempSurfaceType" abstract="false"
fdo:hasGeometry="false">

 
<file:///C:\Documents%20and%20Settings\mckgor01\Local%20Settings\Temp\tempSu
rface.xml##> - <xs:complexContent>

 
<file:///C:\Documents%20and%20Settings\mckgor01\Local%20Settings\Temp\tempSu
rface.xml##> - <xs:extension base="gml:AbstractFeatureType">

 
<file:///C:\Documents%20and%20Settings\mckgor01\Local%20Settings\Temp\tempSu
rface.xml##> - <xs:sequence>

 
<file:///C:\Documents%20and%20Settings\mckgor01\Local%20Settings\Temp\tempSu
rface.xml##> - <xs:element name="Id">

 
<file:///C:\Documents%20and%20Settings\mckgor01\Local%20Settings\Temp\tempSu
rface.xml##> - <xs:annotation>

  <xs:documentation /> 

  </xs:annotation>

 
<file:///C:\Documents%20and%20Settings\mckgor01\Local%20Settings\Temp\tempSu
rface.xml##> - <xs:simpleType>

 
<file:///C:\Documents%20and%20Settings\mckgor01\Local%20Settings\Temp\tempSu
rface.xml##> - <xs:restriction base="xs:string">

  <xs:maxLength value="256" /> 

  </xs:restriction>

  </xs:simpleType>

  </xs:element>

 
<file:///C:\Documents%20and%20Settings\mckgor01\Local%20Settings\Temp\tempSu
rface.xml##> - <xs:element name="Image" type="fdo:RasterPropertyType"
fdo:defaultImageXSize="200" fdo:defaultImageYSize="200"
fdo:srsName="Default">

 
<file:///C:\Documents%20and%20Settings\mckgor01\Local%20Settings\Temp\tempSu
rface.xml##> - <xs:annotation>

 
<file:///C:\Documents%20and%20Settings\mckgor01\Local%20Settings\Temp\tempSu
rface.xml##> - <xs:appinfo source="http://fdo.osgeo.org/schemas">

  <fdo:DefaultDataModel dataModelType="Unknown" dataType="Unknown"
organization="Row" bitsPerPixel="32" tileSizeX="128" tileSizeY="128" /> 

  </xs:appinfo>

  </xs:annotation>

  </xs:element>

  </xs:sequence>

  </xs:extension>

  </xs:complexContent>

  </xs:complexType>

  </xs:schema>

 
<file:///C:\Documents%20and%20Settings\mckgor01\Local%20Settings\Temp\tempSu
rface.xml##> - <SchemaMapping provider="Autodesk.Raster.3.2" name="rasters"
xmlns="http://www.autodesk.com/isd/fdo/RasterFileProvider">

 
<file:///C:\Documents%20and%20Settings\mckgor01\Local%20Settings\Temp\tempSu
rface.xml##> - <complexType name="tempSurfaceType">

 
<file:///C:\Documents%20and%20Settings\mckgor01\Local%20Settings\Temp\tempSu
rface.xml##> - <RasterDefinition name="rasters">

 
<file:///C:\Documents%20and%20Settings\mckgor01\Local%20Settings\Temp\tempSu
rface.xml##> - <Location name="">

 
<file:///C:\Documents%20and%20Settings\mckgor01\Local%20Settings\Temp\tempSu
rface.xml##> - <Feature name="tempSurface.asc">

 
<file:///C:\Documents%20and%20Settings\mckgor01\Local%20Settings\Temp\tempSu
rface.xml##> - <Band name="RGB" number="1">

  <Image name="tempSurface.asc" frame="1" /> 

  </Band>

  </Feature>

  </Location>

  </RasterDefinition>

  </complexType>

  </SchemaMapping>

  </fdo:DataStore>

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20080714/3425e746/attachment.html


More information about the mapguide-users mailing list