[mapguide-users] Create Featuresource
Jackie Ng
jumpinjackie at gmail.com
Tue Sep 29 07:50:09 EDT 2009
FDO is the way to go. As Kenneth already mentioned, this approach won't be
portable unless you want to dive into the native C++ API. The Managed FDO
API is only available for Windows.
To do this, you will have to do the following:
FDO side:
1. Create a FDO connection to the desired provider
2. Create and execute an ICreateDataStore command
3. Build your FDO feature schema (similar to MapGuide)
4. Create and execute an IApplySchema command, with the schema you built.
Then it's over to the MapGuide side:
1. Create a new feature source xml document with the same connection
settings
2. Save this into your site repository using MgResourceService.
The MapGuide 2.2 APIs will eventually remove the need to use FDO directly
for some providers (the non-RDBMS ones)
- Jackie
Gunter Becker wrote:
>
> Hi,
>
> I want to create a new featuresource (shp, sdf or SQL Server 2008 Spatial)
> from my webapplication (c# .NET). I got it working for a sdf FeatureSource
> with the MapGuideAPI. But I'm wondering if it is possible for SHP or SQL
> Server Spatial at all. What are the steps to create an shape-file in the
> repository or as an external file and what are the steps to create a
> spatial database table. Is there an easy way to do this with the
> MaestroAPI. Or do I have to use the FdoAPI ?
>
> Thanks, Gunter
>
--
View this message in context: http://n2.nabble.com/Create-Featuresource-tp3735230p3735563.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
More information about the mapguide-users
mailing list