it's a nasty bug huh?<br><br><div class="gmail_quote">On Tue, Oct 27, 2009 at 7:09 PM, Gunter Becker <span dir="ltr"><<a href="mailto:gunter.becker@csogis.de">gunter.becker@csogis.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Zac, your right. I'm facing the same bug you've described in this ticket. No<br>
errors were thrown when updating my feature source and I didn't recognise<br>
that the updatefeature methode has a return value. So when I debug my code I<br>
see that a MgStringProperty is returned. The value of this string is:<br>
<br>
An exception occurred in FDO component. Item 'Persons' not found in<br>
collection<br>
<br>
OK, now I get at least an error but don't know how to interpret it.<br>
'Persons' is the classname of my feature source (and the tablename in SQL<br>
Server).<br>
<br>
I think my feature source is not defined as read only, because using<br>
MgDeleteFeatures works fine and the SQL Server account which I'm using has<br>
read-write access.<br>
Like I said in my first post I can delete features but I'm not able to<br>
create them.<br>
<br>
Thanks, Gunter<br>
<div><div></div><div class="h5"><br>
<br>
<br>
<br>
zspitzer wrote:<br>
><br>
> sdf is r/w via mapguide?<br>
><br>
> just a guess, is your feature source defined as read only?<br>
><br>
> this might help?<br>
><br>
> <a href="http://trac.osgeo.org/mapguide/ticket/649" target="_blank">http://trac.osgeo.org/mapguide/ticket/649</a><br>
><br>
><br>
><br>
> On Tue, Oct 27, 2009 at 1:11 PM, Jamo <<a href="mailto:adam.jamison@portbris.com.au">adam.jamison@portbris.com.au</a>><br>
> wrote:<br>
><br>
>><br>
>> I think mapguide api only exposes sdf write capabilities?<br>
>> Might have to do it through fdos<br>
>><br>
>> Rodolfo Moreno wrote:<br>
>> ><br>
>> > why don't you insert sql features using SQL spatial scripts?<br>
>> ><br>
>> > Regards,<br>
>> ><br>
>> ><br>
>> > Gunter Becker wrote:<br>
>> >><br>
>> >> Is there at least anyone who had successfully added features to SQL<br>
>> >> Server 2008 Spatial with the MapGuide API. What could cause problems<br>
>> when<br>
>> >> adding features to the database?<br>
>> >><br>
>> >> I think there was another thread (<br>
>> >><br>
>> <a href="http://n2.nabble.com/MSSqlServer-Spatial-problem-tt3148712.html#a3154109" target="_blank">http://n2.nabble.com/MSSqlServer-Spatial-problem-tt3148712.html#a3154109</a><br>
>> >> MSSqlServer Spatial problem ) that describes a similar problem.<br>
>> >> But this problem had to do with 3-dimensional point what is not what i<br>
>> am<br>
>> >> using. I am using x,y-points.<br>
>> >><br>
>> >> Any ideas?<br>
>> >><br>
>> >> Gunter<br>
>> >><br>
>> >><br>
>> >><br>
>> >> Gunter Becker wrote:<br>
>> >>><br>
>> >>> Hi,<br>
>> >>><br>
>> >>> i'm trying to add features to an existing FeatureSource via MapGuide<br>
>> >>> API. I've created a new schema with Autodesk Map 2010, created some<br>
>> >>> polygons, created my feature source and layer in MapGuide Studio,<br>
>> >>> inserted the layer in my map and it shows up fine.<br>
>> >>><br>
>> >>> OK, displaying the features works fine. But when trying to add some<br>
>> >>> features via the digitize function and my serverside code nothing<br>
>> >>> happens. It seemes that the code works fine, cause it is the same<br>
>> code<br>
>> >>> that I use with sdf feature sources and the code throws no error in<br>
>> >>> debug mode. The "UpdateFeatures"-Methode seems to work but when<br>
>> looking<br>
>> >>> into the SQL Server table there is no entry and therefore no object<br>
>> on<br>
>> >>> the map. When logging SQL-Statements with SQL Profiler no activities<br>
>> >>> were logged.<br>
>> >>><br>
>> >>> Only thing that works is deleting an existing map from the<br>
>> >>> featuresource. So maybe it has to do something with the<br>
>> >>> coordinatesystem? But as far as I understand the geometry-column of<br>
>> my<br>
>> >>> databasetable doesn't need a coordinatesystem assigned!<br>
>> >>><br>
>> >>> Someone who had same problem? Any ideas?<br>
>> >>><br>
>> >>> Thanks, Gunter<br>
>> >>><br>
>> >><br>
>> >><br>
>> ><br>
>> ><br>
>><br>
>> --<br>
>> View this message in context:<br>
>> <a href="http://n2.nabble.com/Add-features-to-SQL-Server-Spatial-tp3878130p3896621.html" target="_blank">http://n2.nabble.com/Add-features-to-SQL-Server-Spatial-tp3878130p3896621.html</a><br>
>> Sent from the MapGuide Users mailing list archive at Nabble.com.<br>
>> _______________________________________________<br>
>> mapguide-users mailing list<br>
>> <a href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a><br>
>> <a href="http://lists.osgeo.org/mailman/listinfo/mapguide-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a><br>
>><br>
><br>
><br>
><br>
> --<br>
> Zac Spitzer -<br>
> <a href="http://zacster.blogspot.com" target="_blank">http://zacster.blogspot.com</a><br>
> +61 405 847 168<br>
><br>
> _______________________________________________<br>
> mapguide-users mailing list<br>
> <a href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/mapguide-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a><br>
><br>
><br>
<br>
--<br>
</div></div>View this message in context: <a href="http://n2.nabble.com/Add-features-to-SQL-Server-Spatial-tp3878130p3897516.html" target="_blank">http://n2.nabble.com/Add-features-to-SQL-Server-Spatial-tp3878130p3897516.html</a><br>
<div><div></div><div class="h5">Sent from the MapGuide Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
mapguide-users mailing list<br>
<a href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapguide-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Zac Spitzer -<br><a href="http://zacster.blogspot.com">http://zacster.blogspot.com</a><br>+61 405 847 168<br>