<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
To get the actual mapping for an existing featuresource, you can
download the Xml for an existing FeatureSource, either in Studio or
through the http interface:<br>
<a class="moz-txt-link-freetext" href="http://localhost/mapguide/mapagent/index.html">http://localhost/mapguide/mapagent/index.html</a><br>
Choose the "Resource" and "GetResourceContent"<br>
<br>
The "unmanaged" refers to the fact that the resource files are not
inside the repository.<br>
So, to make the featuresource unmanaged, modify one of the [Parameter
Value] strings to point to an external datasource.<br>
<pre class="moz-signature" cols="72">Regards, Kenneth, GEOGRAF A/S
</pre>
<br>
<br>
Jackie Ng skrev:
<blockquote cite="mid:12586615.post@talk.nabble.com" type="cite">
  <pre wrap="">A basic FeatureSource document looks like something below...

&lt;?xml version="1.0"?&gt;
&lt;FeatureSource xsi:noNamespaceSchemaLocation="FeatureSource-1.0.0.xsd"&gt;
     &lt;Provider&gt;[Name of the provider]&lt;/Provider&gt;
     &lt;Parameter&gt;
           &lt;Name&gt;[Connection Parameter]&lt;/Name&gt;
           &lt;Value&gt;[Parameter Value]&lt;/Value&gt;
     &lt;/Parameter&gt;
     &lt;Parameter&gt;
           &lt;Name&gt;[Connection Parameter]&lt;/Name&gt;
           &lt;Value&gt;[Parameter Value]&lt;/Value&gt;
     &lt;/Parameter&gt;
     &lt;Parameter&gt;
           &lt;Name&gt;[Connection Parameter]&lt;/Name&gt;
           &lt;Value&gt;[Parameter Value]&lt;/Value&gt;
     &lt;/Parameter&gt;
     ....
&lt;/FeatureSource&gt;

[Name of the provider] is the name of the provider (eg. OSGeo.SDF,
OSGeo.SHP, etc)

To determine what parameters are required. invoke the
GetConnectPropertyValues of the Feature Service in your mapagent.

- Jackie


Carl wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Can somebody share a XML example of an unmanaged feature source
definition?


Kenneth, GEOGRAF A/S wrote:
    </pre>
    <blockquote type="cite">
      <pre wrap="">Afaik, there is no template.
To use the "unmanaged feature source" feature, you must have a server of 
build 1.2 or greater (Enterprise 2008 is roughly 1.2 Beta2).
Sencondly the unmanaged feature is avalible but not displayed in Studio 
2007.
You will have to upgrade if you want it displayed in Studio.

You can setup an unmanaged directory, using the "Site Administrator" 
(there is a menu for opening the site administrator in Studio).
Once the folder is setup, you can use it from within Studio 2008.

If you use Studio 2007, you must manually edit the FeatureSource xml 
file, and change the path to something like:
%MG_DATA_PATH_ALIAS[name of alias]%/name of datafile.sdf

You will probably have to restart both the server and studio if you add 
or remove an alias.

If you don't want the alias option, but just reference data outside of 
the repository, you can manually edit the FeatureSource xml, to point at 
the correct data.

Regards, Kenneth, GEOGRAF A/S



Carl skrev:
      </pre>
      <blockquote type="cite">
        <pre wrap="">Where I can find the template of unmanaged featuresource, or layer?
  
        </pre>
      </blockquote>
      <pre wrap="">_______________________________________________
mapguide-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapguide-users">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a>


      </pre>
    </blockquote>
    <pre wrap="">
    </pre>
  </blockquote>
  <pre wrap=""><!---->
  </pre>
</blockquote>
</body>
</html>