Re: [mapguide-users] Add features to SQL Server Spatial

2009-10-27 Thread Gunter Becker
The advantage of using FDO via the MapGuide API is that you just have to write the code one time and then it should work far all feature sources regardless of datastore (database or file based). Yes, I would be able to use SQL Scripts but I try to avoid using them. If I dont't find the solution

Re: [mapguide-users] Add features to SQL Server Spatial

2009-10-27 Thread Gunter Becker
I don't think that you just can write to sdf feature sources. Maybe you mean the creation of datastores. SDF is the only datastore you can create with mapguide API. Thanks, Gunter Jamo wrote: I think mapguide api only exposes sdf write capabilities? Might have to do it through fdos

Re: [mapguide-users] Add features to SQL Server Spatial

2009-10-27 Thread Gunter Becker
Zac, your right. I'm facing the same bug you've described in this ticket. No errors were thrown when updating my feature source and I didn't recognise that the updatefeature methode has a return value. So when I debug my code I see that a MgStringProperty is returned. The value of this string is:

Re: [mapguide-users] Add features to SQL Server Spatial

2009-10-27 Thread Zac Spitzer
it's a nasty bug huh? On Tue, Oct 27, 2009 at 7:09 PM, Gunter Becker gunter.bec...@csogis.dewrote: Zac, your right. I'm facing the same bug you've described in this ticket. No errors were thrown when updating my feature source and I didn't recognise that the updatefeature methode has a

Re: [mapguide-users] Add features to SQL Server Spatial

2009-10-26 Thread Gunter Becker
Is there at least anyone who had successfully added features to SQL Server 2008 Spatial with the MapGuide API. What could cause problems when adding features to the database? I think there was another thread ( http://n2.nabble.com/MSSqlServer-Spatial-problem-tt3148712.html#a3154109 MSSqlServer

Re: [mapguide-users] Add features to SQL Server Spatial

2009-10-26 Thread Rodolfo Moreno
why don't you insert sql features using SQL spatial scripts? Regards, Gunter Becker wrote: Is there at least anyone who had successfully added features to SQL Server 2008 Spatial with the MapGuide API. What could cause problems when adding features to the database? I think there was

Re: [mapguide-users] Add features to SQL Server Spatial

2009-10-26 Thread Jamo
I think mapguide api only exposes sdf write capabilities? Might have to do it through fdos Rodolfo Moreno wrote: why don't you insert sql features using SQL spatial scripts? Regards, Gunter Becker wrote: Is there at least anyone who had successfully added features to SQL Server

Re: [mapguide-users] Add features to SQL Server Spatial

2009-10-26 Thread Zac Spitzer
sdf is r/w via mapguide? just a guess, is your feature source defined as read only? this might help? http://trac.osgeo.org/mapguide/ticket/649 On Tue, Oct 27, 2009 at 1:11 PM, Jamo adam.jami...@portbris.com.au wrote: I think mapguide api only exposes sdf write capabilities? Might have to

[mapguide-users] Add features to SQL Server Spatial

2009-10-23 Thread Gunter Becker
Hi, i'm trying to add features to an existing FeatureSource via MapGuide API. I've created a new schema with Autodesk Map 2010, created some polygons, created my feature source and layer in MapGuide Studio, inserted the layer in my map and it shows up fine. OK, displaying the features works