[mapguide-users] SHP Feature source update
smeurant
smeurant at celsius-tech.com
Mon Nov 30 04:51:58 EST 2009
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 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
>>
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
>
--
View this message in context: http://n2.nabble.com/SHP-Feature-source-update-tp4076428p4086781.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
More information about the mapguide-users
mailing list