Hi,
Can some one help me in obtaining the service layer ID from AGSGDBFeatureTable of a geodatabase?
Currently, there is only the 'serviceLayerName' property attributed to the feature table. But in Android SDK, there is a specific API to retrieve layer ID (getFeatureServiceLayerId) from feature table of geodatabase.
Solved! Go to Solution.
Unfortunately, there isn't a way to get the layer ID currently. We can look into adding it for an upcoming release. How do you plan to use it?
If you used the AGSGDBSyncTask to generate the geodatabase, the task has a property called featureServiceInfo, which in turn has an array of layer infos for each layer in the service. This layer info contains both name and ID of the sub layers.
In the meantime, if you already happen to have the layer ID and want to get the corresponding feature table, you can use [AGSGDBGeodatabase featureTableForLayerID:]
Unfortunately, there isn't a way to get the layer ID currently. We can look into adding it for an upcoming release. How do you plan to use it?
If you used the AGSGDBSyncTask to generate the geodatabase, the task has a property called featureServiceInfo, which in turn has an array of layer infos for each layer in the service. This layer info contains both name and ID of the sub layers.
In the meantime, if you already happen to have the layer ID and want to get the corresponding feature table, you can use [AGSGDBGeodatabase featureTableForLayerID:]
Thanks. It solved the purpose.