Obtaining service layer ID from AGSGDBFeatureTable

2071
2
Jump to solution
08-04-2014 07:45 AM
ShankaralingamG
New Contributor

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.

0 Kudos
1 Solution

Accepted Solutions
DiveshGoyal
Esri Regular Contributor

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:]

View solution in original post

0 Kudos
2 Replies
DiveshGoyal
Esri Regular Contributor

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:]

0 Kudos
ShankaralingamG
New Contributor

Thanks. It solved the purpose.

0 Kudos