<div>Thanks alot for your reply Jackie,</div> <div> </div> <div>The remote computers are not in a LAN, I have to access the files over the internet. Can this method be used for the computers on the internet?<BR><BR><B><I>Jackie Ng <jackie.ng@aecsystems.com.au></I></B> wrote:</div> <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid"><BR>Is the remote computer on the same network as the mapguide server? Are the<BR>shp files on a network share? If so you can create an unmanaged alias in the<BR>MapGuide Site Administrator to that network share, and be able to refer to<BR>that alias in your resource documents.<BR><BR>For example if your shp files are located at \\server\shp you can create an<BR>alias "SERVER_SHP" that you can then refer to in your resource xml documents<BR>as %MG_DATA_PATH_ALIAS[SERVER_SHP]%<BR><BR>So if you have a shp file called foo.shp in that network share you can<BR>create a feature source
document that refers to it by creating a document<BR>that look like something below:<BR><BR><?xml version="1.0" encoding="utf-8"?><BR><FEATURESOURCE <br xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">xmlns:xsd="http://www.w3.org/2001/XMLSchema"<BR>xsi:noNamespaceSchemaLocation="FeatureSource-1.0.0.xsd"><BR><PROVIDER>OSGeo.SHP</PROVIDER><BR><PARAMETER><BR><NAME>DefaultFileLocation</NAME><BR><VALUE>%MG_DATA_PATH_ALIAS[SERVER_SHP]%foo.shp</VALUE><BR></PARAMETER><BR><PARAMETER><BR><NAME>TemporaryFileLocation</NAME><BR><VALUE></VALUE><BR></PARAMETER><BR></FEATURESOURCE><BR><BR>Hope that helps.<BR><BR>- Jackie<BR><BR><BR>Mansoureh Sadrykia wrote:<BR>> <BR>> Hi List!<BR>> <BR>> I intend to use mapagent to connect to shp files in a remote computer<BR>> and decided to introduce the files' address, in the xml that I use in<BR>> mapagent as the "content". Is it possible to introduce an IP address for<BR>> the directory of shp files? Can map agent follow
such an address and find<BR>> the files?<BR>> <BR>> Thanks in advance for your help; <BR>> <BR>> <BR>> ---------------------------------<BR>> Need a vacation? Get great deals to amazing places on Yahoo! Travel. <BR>> _______________________________________________<BR>> mapguide-users mailing list<BR>> mapguide-users@lists.osgeo.org<BR>> http://lists.osgeo.org/mailman/listinfo/mapguide-users<BR>> <BR>> <BR><BR>-- <BR>View this message in context: http://www.nabble.com/Connecting-to-remote-files-using-mapagent--tf4303364s16610.html#a12249882<BR>Sent from the MapGuide Users mailing list archive at Nabble.com.<BR><BR>_______________________________________________<BR>mapguide-users mailing list<BR>mapguide-users@lists.osgeo.org<BR>http://lists.osgeo.org/mailman/listinfo/mapguide-users<BR></BLOCKQUOTE><BR><p> 
<hr size=1>Ready for the edge of your seat?
<a href="http://us.rd.yahoo.com/evt=48220/*http://tv.yahoo.com/">Check out tonight's top picks</a> on Yahoo! TV.