Find ID-array for queried features

01-09-2015 05:04 PM
Occasional Contributor II

How can I get an array of the features IDs founded by a query?

For example, I want to find an array that contains the OBJECTIDs for all the features in the feature class using this where-statement “OBJECTID >=1”

I used queryIds() method, which returns a Future contains the wanted IDs array, but I cannot extract this array from the Future.

How can I get this array?

Thank you and Best Regards,


0 Kudos
1 Reply
Regular Contributor II

Hi Hani,

Good question.

Could you use getSelectionIDs() on FeatureLayer? This returns an array of ids.

FeatureLayer | ArcGIS Android 10.2.5 API

Would this work for you?

0 Kudos