AnsweredAssumed Answered

Question with AGSFeatureTable and AGSFeature IOS SDK

Question asked by christian.eitel on Sep 29, 2014

Hi Everyone,


I'm completely new here and i hope anybody can help me.

I have create a Feature Service and was able to connect to it.

I try to create a AGSFeature and add it to a AGSFeatureTable.

I use for this the function "saveFeature" from AGSFeatureTable.



My Code :


AGSGDBFeatureTable *localFeatureTable = [geodatabase featureTableForLayerID0)];


AGSSpatialReference *srp = [AGSSpatialReference spatialReferenceWithWKID:102100];


AGSPoint *point = [[AGSPoint alloc] initWithX:(868819.000) y:(6352269.000) spatialReference:(srp)];


AGSGDBFeature *pointFeature = [[AGSGDBFeature alloc] initWithTable:(localFeatureTable)];


[pointFeature setGeometry:(point)];


// I only have one Attribute for the Point FeatureTable in my Feature Service.

[pointFeature setAttributeWithString:(@"Test") forKey:(@"Name")];


NSError *error;


[localFeatureTable saveFeature:(pointFeature) error:(&error)];



@ saveFeature a error appears:

terminating with uncaught exception of type std::__1::shared_ptr<Esri_runtimecore::Common::Exception>


I don't know what i did wrong and how i can detect the error.

Hopefully anybody could help me !


Best Regards


Christian Eitel