Re: [mapguide-users] SHP Feature source update

2009-11-30 Thread Kenneth Skovhede, GEOGRAF A/S
"Invalid stream header exception" is usually an indication that you are using an incompatible version of the WebAPI dlls. Eg. You install MGOS 2.0, and copy the dll's to your project. You then upgrade to MGOS 2.1, but forget to upgrade the dll's. Regards, Kenneth Skovhede, GEOGRAF A/S smeuran

Re: [mapguide-users] SHP Feature source update

2009-11-30 Thread smeurant
I made the change. I still have a "Invalid stream header exception" but the new feature is successfully added to the feature source . I will check where the exception come from and I will update my post later. Thanks for your help Kenneth. Kenneth Skovhede, GEOGRAF A/S wrote: > > MgLayer is th

Re: [mapguide-users] SHP Feature source update

2009-11-30 Thread Kenneth Skovhede, GEOGRAF A/S
MgLayer is the name of the class that is used for runtime layers. Im guessing that layer.GetClassName() returns "MgLayer". Have you tried with GetFeatureClassName(): http://mapguide.osgeo.net/files/mapguide/docs/webapi/d6/de2/class_mg_layer_a983e24398d337eff4809830993eb992.html#a983e24398d337eff48

[mapguide-users] SHP Feature source update

2009-11-27 Thread smeurant
Hi all, I try to update a SHP feature source using the MapGuide Java API with a servlet. But i have a problem with this step : featureService.UpdateFeatures(FeatureSourceID,featureCommandCollection,false); Like say the API doc , it return a MgPropertyCollection. And in this propertyCollection,