AnsweredAssumed Answered

Unable to read AGSGDBGeodatabase

Question asked by akmuzammil on Apr 21, 2014
Latest reply on Jun 13, 2016 by mikedmanak
Dear All,


I'm developing a small application (with Runtime SDK for iOS 10.2.2) for displaying an offline geodatabase (.geodatabase file)  that I have created with ArcGIS for Desktop 10.2.1.

The application crashes at below line in debug mode. In Device mode, the gdb value is nil ( I used iTunes File Sharing for device).
AGSGDBGeodatabase *gdb = [[AGSGDBGeodatabase alloc] initWithPath:thePathString error:&error];

Exception Details in Console Window:

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'This AGSFeatureTable is backed by a non-spatial table. A spatial table is required to be rendered in a layer.'


Looks like there is a problem with .geodatabase file. I tried a sample with 1 simple layer. It works.
But when i generate .geodatabase file with many layers, I get above exception.


Regards
Muzammil

Outcomes