Steve, that's some good doco / advice, would you be able to add that as a page on the MapGuide Wiki? http://trac.osgeo.org/mapguide/
z On Wed, Jun 29, 2011 at 6:10 AM, Steve G <steve.gol...@morganhill.ca.gov> wrote: > I am a bit confused by your XML snippet that you copied. It doesn't look > quite right to me. Below is a test from a sample data definition that I > just created (the alias name is "RDriveGIS"). > > <?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>OSGeo.Gdal</Provider> > <Parameter> > <Name>DefaultRasterFileLocation</Name> > > <Value>%MG_DATA_PATH_ALIAS[RDriveGIS]%Aerials/1995Aerials/TIF/B05.TIF</Value> > </Parameter> > </FeatureSource> > > > Can you copy and post the whole XML document? Just to make sure we're on > the same page, the easiest way is use Maestro and click on the button at the > top (Maestro 3.x tool name says "Edit as XML"....it looks slightly different > in 2.x versions but gives you the same xml doc). > > My experience is that you can reference files (unmanaged resources) on the > same machine (i.e. "C" drive) or externally like on a file server. If you > reference to a file server via an alias here are some rules I've used to > make it work (using MGOS versions 2.0 to 2.2): > > 1. Open MapGuide Server v2.x Service properties (Control > Panel>Administrative Tools> Services>Mapguide Server v2.x) > 2. Under the Log On properties, add an account that has permission to > access > the network drive > 3. Click apply. > 4. Stop and restart the service. > 5. Add external files (alias) in MapGuide Site Administrator. > a. To set-up a connection to a network drive, make sure you use the > proper > nomenclature > CORRECT: “\\fileserver\city\utilities\GIS_Data” > INCORRECT: “R:\city\utilities\GIS_Data” > 6. Stop and restart the service (any changes to the external file aliases > will not change unless you stop and restart the service). > > Then go back to Maestro and recreate your data connection / feature source > definition (depending on what version of Maestro you are using, the names > are slightly different but the function is the same). > > I haven't had any problems with TIFs and ECWs (aside from some minor > coordinate system issues) while loading from the file server. > > -Steve > > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/Using-MG-DATA-PATH-ALIAS-tp6511919p6526394.html > Sent from the MapGuide Users mailing list archive at Nabble.com. > _______________________________________________ > mapguide-users mailing list > mapguide-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapguide-users > -- Zac Spitzer Solution Architect / Director Ennoble Consultancy Australia http://www.ennoble.com.au http://zacster.blogspot.com +61 405 847 168 _______________________________________________ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users