[mapguide-users] Data sources location list

Jackie Ng jumpinjackie at gmail.com
Mon Dec 22 02:47:53 PST 2014

You can do an ENUMERATERESOURCE call in the mapagent (or
IResourceService.GetRepositoryResources in Maestro API) and supply the
following parameters:

 * Start from: Library:// (ie. The root of the repository)
 * Filter: FeatureSource (only return Feature Sources)
 * Depth:  
 * Compute Children: false

When you execute this operation, you will hopefully get back a
repository-wide list of all Feature Source documents. You can now open each
Feature Source document with the given ids and scan their XML for any traces

 * %MG_DATA_FILE_PATH% (for managed resources)
 * %MG_DATA_ALIAS_PATH (for unmanaged resources)

With the Maestro API you'll work with objects instead of raw XML so there is
probably some helper extension methods on IFeatureSource that can easily
tell you this information (whether it has embedded or aliased data files)

Hope that helps.

- Jackie

View this message in context: http://osgeo-org.1560.x6.nabble.com/Data-sources-location-list-tp5178730p5178814.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

More information about the mapguide-users mailing list