[mapguide-users] How to prepare the unmanaged feature source?
Jackie Ng
jackie.ng at aecsystems.com.au
Mon Sep 10 00:48:20 EDT 2007
A basic FeatureSource document looks like something below...
<?xml version="1.0"?>
<FeatureSource xsi:noNamespaceSchemaLocation="FeatureSource-1.0.0.xsd">
<Provider>[Name of the provider]</Provider>
<Parameter>
<Name>[Connection Parameter]</Name>
<Value>[Parameter Value]</Value>
</Parameter>
<Parameter>
<Name>[Connection Parameter]</Name>
<Value>[Parameter Value]</Value>
</Parameter>
<Parameter>
<Name>[Connection Parameter]</Name>
<Value>[Parameter Value]</Value>
</Parameter>
....
</FeatureSource>
[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:
>
> Can somebody share a XML example of an unmanaged feature source
> definition?
>
>
> Kenneth, GEOGRAF A/S wrote:
>>
>> 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:
>>> Where I can find the template of unmanaged featuresource, or layer?
>>>
>> _______________________________________________
>> 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/How-to-prepare-the-unmanaged-feature-source--tf4408812s16610.html#a12586615
Sent from the MapGuide Users mailing list archive at Nabble.com.
More information about the mapguide-users
mailing list