Steve, 

My XML snippet is from the configuration document. I'll have another go, but I 
had no success using paths linked even to local drives. I have the service 
running under a different user, as I had to do this in order to get the server 
to use a netrowk drive for the tile cache.

Regards,
Dave

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Steve G
Sent: 28 June 2011 21:10
To: [email protected]
Subject: [mapguide-users] Re: Using MG_DATA_PATH_ALIAS

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
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users



_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Reply via email to