[mapguide-users] Additional FDO Provider Previews

Traian Stanev traian.stanev at autodesk.com
Mon Apr 10 15:46:53 EDT 2006



Yes there a lot of stuff in there and this mostly because not all
rasters are created equal. Studio sets up all the information for the
config file and you will see that a lot of the fields in there
correspond to various UI in the Studio raster loader. That said, you
really don't need to worry too much about insertion point and rotation.
If you look at the XML, it has the following:

<Georeference>
  <InsertionPointX>381446.000000</InsertionPointX> 
  <InsertionPointY>4698756.000000</InsertionPointY> 
  <ResolutionX>8.000000</ResolutionX> 
  <ResolutionY>8.000000</ResolutionY> 
  <RotationX>0.000000</RotationX> 
  <RotationY>0.000000</RotationY> 
</Georeference>

These numbers correspond to what is found in an ESRI world file, albeit
in a slightly different order. The order of these numbers in the world
file is (if I remember it right):

ResolutionX
RotationX
RotationY
ResolutionY
InsertionX
InsertionY

Yes, you do need to know the coordinate system for the raster, but that
would normally be the same as that of the whole map -- since the raster
provider cannot reproject rasters from one coord sys to another :).


Traian
 

-----Original Message-----
From: Jason Birch [mailto:Jason.Birch at nanaimo.ca] 
Sent: Monday, April 10, 2006 3:32 PM
To: users at mapguide.osgeo.org
Subject: RE: [mapguide-users] Additional FDO Provider Previews

Thanks Traian,
 
I'm surprised that the XML file contains so much information about the
image (SRS, insertion point, rotation, etc).  That's going to make it a
bit harder to write a generic application for this.  Is there any way to
get this info through the MapGuide API before defining the data store,
or do I need to use an external app (gdalinfo) to grab it?
 
Jason
 
________________________________

From: Traian Stanev [mailto:traian.stanev at autodesk.com] 
Sent: Monday, April 10, 2006 12:10
To: users at mapguide.osgeo.org
Subject: RE: [mapguide-users] Additional FDO Provider Previews


 
For a raster resource, there will (unfortunately) be an extra step of
indirection from what I posted originally for SHP and SDF files. Most of
the feature information for a raster is stored in a separate XML file
which the feature source points to. Basically the feature source looks
like this:
 
<?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.0</Provider> 
  <ConfigurationDocument>config.xml</ConfigurationDocument> 
</FeatureSource>
 
 
Note how it points to config.xml -- this file is also stored as a
resource associated with the raster feature source, so you need to call
the GetResourceData operation with config.xml as argument. config.xml
contains the location of the directory where the raster is and then
lists the raster you actually want to include in this feature source. So
you can edit it similar to what I suggested for SHP and SDF and save it
back to the repository using SetResourceData.
 
An example config.xml is attached. The disclaimer here is that unlike
SHP and SDF, I did not actually verify that this process would work
without problems for the raster provider.
 
Traian
 

________________________________

From: Jason Birch [mailto:Jason.Birch at nanaimo.ca] 
Sent: Monday, April 10, 2006 2:49 PM
To: users at mapguide.osgeo.org
Subject: RE: [mapguide-users] Additional FDO Provider Previews


Have you looked at using this procedure to create resources with
external locations?
 
https://mapguide.osgeo.org/servlets/ReadMsg?listName=users&msgNo=321
 
When I have time, I'm going to write either a web app or command line
utility that allows us to do this for SHP/SDF (and other?) resources.  I
may need to work on figuring the right XML schema for the new data
sources...
 
Jason

________________________________

From: Andy Morsell [mailto:amorsell at spatialgis.com] 
Sent: Monday, April 10, 2006 11:44
To: users at mapguide.osgeo.org
Subject: RE: [mapguide-users] Additional FDO Provider Previews


I've been playing with the raster provider this morning and am happy to
report that two quick tests worked fine and performance seems to be very
good.  I loaded up a 10 MB ECW and a 250 MB MrSID.  The flexibility of
transparent shaded polygon fills really shows over raster, it's very
nice.  
 
My only complaint is the managed data structure of the repository.  I
had to load my MrSID which already resides somewhere else on that same
drive and is accessed by other apps (like an older MapGuide 6.5 app).
Now I have redundant data.  Are there any plans to allow "connections"
to raster data stored in other physical locations?  I have some clients
that have many gigabytes of imagery used in their existing MapGuide
applications and I see having to load the data as a potential problem.
 

Andy Morsell, P.E. 
Spatial Integrators, Inc. 
http://www.SpatialGIS.com 

________________________________

From: Robert Bray [mailto:robert.bray at autodesk.com] 
Sent: Monday, April 10, 2006 9:04 AM
To: users at mapguide.osgeo.org
Subject: [mapguide-users] Additional FDO Provider Previews



All,

 

Previews of the additional FDO Providers for ArcSDE, MySQL, ODBC, WMS,
WFS, and Raster Files have now been posted for the Windows platform only
at this point. You can download individual providers from:

 

https://mapguide.osgeo.org/servlets/ProjectDocumentList?folderID=35&expa
ndFolder=35&folderID=35
<https://mapguide.osgeo.org/servlets/ProjectDocumentList?folderID=35&exp
andFolder=35&folderID=35> 

 

Note that the included Raster Provider is the one that will be shipped
with the commercial MapGuide offering. If you only intend to use the
Open Source version then Franks GDAL Provider is the one you will want
to use long term.

 

See the readme.txt file included with each provider package for
installation instructions.

 

Thanks,

Bob


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe at mapguide.osgeo.org
For additional commands, e-mail: users-help at mapguide.osgeo.org







More information about the Mapguide-users mailing list