Sure, here's a FeatureSource for the PostGIS provider that works. After
altering it with your connection parameters you can upload it using the
Set Resource call of the MapAgent, typically found at:
http://yourserver:8008/mapguide/mapagent/
You do not have to specify the header.
Jason
________________________________
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Intengu
Technologies
Sent: Thursday, September 13, 2007 05:08
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] RE: Postgis/mapguide
> 1. Create a datasource
How does one create a datasource using WebStudio or can some please post
a working example of a datasource.
<?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.PostGIS</Provider>
<Parameter>
<Name>Username</Name>
<Value>postgres</Value>
</Parameter>
<Parameter>
<Name>Password</Name>
<Value>postgres</Value>
</Parameter>
<Parameter>
<Name>Service</Name>
<Value>nanaimo</Value>
</Parameter>
<Parameter>
<Name>DataStore</Name>
<Value>public</Value>
</Parameter>
<SupplementalSpatialContextInfo>
<Name>Default</Name>
<CoordinateSystem />
</SupplementalSpatialContextInfo>
</FeatureSource>_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users