[mapguide-users] SHP Feature source update

Kenneth Skovhede, GEOGRAF A/S ks at geograf.dk
Mon Nov 30 03:14:20 EST 2009


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#a983e24398d337eff4809830993eb992

Regards, Kenneth Skovhede, GEOGRAF A/S



smeurant skrev:
> 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, i found a error msg sent by FDO : 
>
> An exception occurred in FDO component.
> FDO class 'MgLayer' not found in schema. 
>
> Is the problem come from my implementation or, is it a bug in MGOS 2.1b?
> Thanks for your help
>
> P.S : You can find the full servlet implementation in the attached file
> http://n2.nabble.com/file/n4076428/updateFeatureSource.java
> updateFeatureSource.java 
>   


More information about the mapguide-users mailing list