[mapguide-dev] load raster

Tom Fukushima tom.fukushima at autodesk.com
Thu Nov 16 12:54:02 EST 2006


Hi Albina,
 
The config.xml that you have pasted below is not a well-formed XML
document. It is starting with an end tag </fdo:WKTCRS>, so there are
some things missing before it.  The document at
http://images.autodesk.com/adsk/files/linking_to_external_data_autodeskm
apguidewhitepaper.pdf has a template config.xml document that you can
start from.
 
After fixing the config.xml document, if you are still having problems,
try using the index.html page you reference below to do a DescribeSchema
on the feature source you created.  This should give an informative
error message.  The describe schema command is available by clicking the
"Feature" Services API in the top left frame, and then clicking
"DescribeSchema" in the bottom left frame.
 
Hope this helps
Tom
 
I have moved this thread to users at mapguide.osgeo.org.
 


  _____  

From: Albina Penitente [mailto:a.penitente at gepaspa.com] 
Sent: Thursday, November 16, 2006 10:27 AM
To: dev at mapguide.osgeo.org
Subject: [mapguide-dev] load raster


Hi all,
 
 
I create the document
 
<?xml version="1.0" encoding="utf-8" ?> 
<FeatureSource xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xsi:noNamespaceSchemaLocation="FeatureSource-1.0.0.xsd">
  <Provider>Autodesk.Raster.3.1</Provider> 
  <ConfigurationDocument>config.xml</ConfigurationDocument> 
</FeatureSource>
 
as raster.xml
 
and file:
 
</fdo:WKTCRS></gml:baseCRS><gml:definedByConversion
xlink:href="http://fdo.osgeo.org/coord_conversions#identity"/
<http://fdo.osgeo.org/coord_conversions#identity"/> >
<gml:derivedCRSType
codeSpace="http://fdo.osgeo.org/crs_types">geographic</gml:derivedCRSTyp
e <http://fdo.osgeo.org/crs_types">geographic</gml:derivedCRSType> >
<gml:usesCS xlink:href="http://fdo.osgeo.org/cs#default_cartesian"/
<http://fdo.osgeo.org/cs#default_cartesian"/> >
</gml:DerivedCRS><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema
<http://www.w3.org/2001/XMLSchema> "
targetNamespace="http://fdo.osgeo.org/schemas/feature/rasters
<http://fdo.osgeo.org/schemas/feature/rasters> "
xmlns:fdo="http://fdo.osgeo.org/schemas <http://fdo.osgeo.org/schemas> "
xmlns:gml="http://www.opengis.net/gml <http://www.opengis.net/gml> "
xmlns:rasters="http://fdo.osgeo.org/schemas/feature/rasters
<http://fdo.osgeo.org/schemas/feature/rasters> "
elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:element name="RasterType" type="rasters:RasterTypeType"
abstract="false" substitutionGroup="gml:_Feature">
<xs:key name="RasterTypeKey"><xs:selector xpath=".//RasterType"/>
<xs:field xpath="Id"/></xs:key>
</xs:element><xs:complexType name="RasterTypeType" abstract="false"
fdo:hasGeometry="false">
<xs:complexContent><xs:extension base="gml:AbstractFeatureType">
<xs:sequence><xs:element name="Id"><xs:annotation><xs:documentation/>
</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="200" fdo:defaultImageYSize="200"><xs:annotation>
<xs:appinfo source="http://fdo.osgeo.org/schemas
<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>
<SchemaMapping provider="Autodesk.Raster.3.1"name="rasters"
xmlns="http://www.autodesk.com/isd/fdo/RasterFileProvider
<http://www.autodesk.com/isd/fdo/RasterFileProvider> ">
<complexType name="RasterTypeType">
<RasterDefinition name="rasters">
<Location name="c:\raster">
<Feature name="prova.tif">
<Band name="RGB" number="1">
<Image name="prova.tif" frame="1">
</Image>
</Band>
</Feature>
</Location>
</RasterDefinition>
</complexType>
</SchemaMapping>
</fdo:DataStore>
 
as config.xml
in the folder c:\raster are prova.tif e prova.tfw
with the browser
http://localhost:8008/mapguide /mapagent/index.html I set  SETRESOURCE
and SETRESOURCEDATA
on the autodesk Studio I create feature source and layer raster with
success, but the raster don't see
 
why?
 
thanks
alba
 
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide_users/attachments/20061116/4e600926/attachment.html


More information about the Mapguide_users mailing list