[mapguide-users] Connecting to remote files using mapagent?

Jackie Ng jackie.ng at aecsystems.com.au
Tue Aug 21 03:44:51 EDT 2007


Is the remote computer on the same network as the mapguide server? Are the
shp files on a network share? If so you can create an unmanaged alias in the
MapGuide Site Administrator to that network share, and be able to refer to
that alias in your resource documents.

For example if your shp files are located at \\server\shp you can create an
alias "SERVER_SHP" that you can then refer to in your resource xml documents
as %MG_DATA_PATH_ALIAS[SERVER_SHP]%

So if you have a shp file called foo.shp in that network share you can
create a feature source document that refers to it by creating a document
that look like something below:

<?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.SHP</Provider>
  <Parameter>
    <Name>DefaultFileLocation</Name>
    <Value>%MG_DATA_PATH_ALIAS[SERVER_SHP]%foo.shp</Value>
  </Parameter>
  <Parameter>
    <Name>TemporaryFileLocation</Name>
    <Value></Value>
  </Parameter>
</FeatureSource>

Hope that helps.

- Jackie
 

Mansoureh Sadrykia wrote:
> 
> Hi List!
>    
>   I intend to use mapagent to connect to shp files in a remote computer
> and decided to introduce the files' address, in the xml that I use in
> mapagent as the "content". Is it possible to introduce an IP address for
> the directory of shp files? Can map agent follow such an address and find
> the files?
>    
>   Thanks in advance for your help;     
> 
>        
> ---------------------------------
> Need a vacation? Get great deals to amazing places on Yahoo! Travel. 
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
> 
> 

-- 
View this message in context: http://www.nabble.com/Connecting-to-remote-files-using-mapagent--tf4303364s16610.html#a12249882
Sent from the MapGuide Users mailing list archive at Nabble.com.



More information about the mapguide-users mailing list