AGSGDBFeatureServiceTable loaded but has no features

3835
1
04-07-2015 01:36 PM
KyleDunaway
New Contributor III

When I init a AGSGDBFeatureServiceTable and call the loadCompletion block, inside the block when I print out the number of features sometimes I get the right number and sometimes I get zero.

AGSGDBFeatureServiceTable.loaded is YES.

Any ideas?

Code:

self.fServiceTable = [[AGSGDBFeatureServiceTable alloc] initWithServiceURL:url credential:self.credential 
spacialReference:self.mapView.spatialRefernece];

self.fServiceTable.loadCompletion = ^(NSError *error) {
     NSLog(@"Count = %lu", (unsigned long)weakSelf.fServiceTable.featureCount);
};
0 Kudos
1 Reply
SuganyaBaskaran1
Esri Contributor

A 'loaded' state of the feature service table means that the service is available/authenticated and the service info (meta data) is available. The query to fetch features is sent only when the layer is rendered on the map.

Hope this helps,

Suganya

0 Kudos