[mapguide-users] Create Featuresource

Kenneth Skovhede, GEOGRAF A/S ks at geograf.dk
Tue Sep 29 09:13:12 EDT 2009


The ".. such files" refers til SHP/SDF/SQLite files.

I have not used the FDO API enough to answer your FDO question.

Regards, Kenneth Skovhede, GEOGRAF A/S



Gunter Becker skrev:
> Thanks Kenneth,
>
> which files do you mean with "create and manipulate such files".
> Do you mean the FeatureSource xml document or the empty SHP- and SDF-Files.
>
> Do I have to use all of the following libraries:  OSGeo.FDO.dll,
> OSGeo.FDO.Common.dll and OSGeo.FDO.Geometry
>
> Thanks, Gunter
>
>
> Kenneth Skovhede, GEOGRAF A/S wrote:
>   
>> The MapGuide API only supports creating SDF files.
>> Rfc77 adresses this partially, and is being implemented for MG2.2:
>> http://trac.osgeo.org/mapguide/wiki/MapGuideRfc77
>>
>> You can always create a FeatureSource xml document and upload to MapGuide.
>> What is missing is an empty SHP/SDF/SQLite file and some column 
>> alteration methods.
>> You can use the FDO API to create and manipulate such files, and then 
>> upload them
>> to MapGuide, using SetResourceData.
>>
>> For the database, simply issue SQL statements, and then save the 
>> FeatureSource to
>> force a schema refresh.
>>
>> MaestroAPI won't make it easier because the method is missing from
>> MapGuide.
>> Implementing it inside the MaestroAPI using FDO would make Maestro 
>> non-portable.
>>
>> Regards, Kenneth Skovhede, GEOGRAF A/S
>>
>>
>>
>> Gunter Becker skrev:
>>     
>>> 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
>>>   
>>>       
>> _______________________________________________
>> mapguide-users mailing list
>> mapguide-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>>
>>
>>     
>
>   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20090929/b706585e/attachment.html


More information about the mapguide-users mailing list