zhousc

Attributes results dosen't match fields count in feature layer query

Discussion created by zhousc on Dec 3, 2017
Latest reply on Dec 4, 2017 by zhousc

Dear All,

 

I am working on a ios app recently and I checked the arcgis-ios-sdk-samples for some help.

 

In the Feature layer selection demo, I got a question about feature layer attributes. When the query results returned, the  following print output

 

print("\(result.featureEnumerator().allObjects.count) feature(s) selected")

print(result.featureEnumerator().nextObject()?.attributes)

 

shows only 2 attributes fields (objectid, typedamage) and values, but in the feature definition, the feature contains 4 attribute fields (objectid, typedamage, numoccup, descdamage). 

 

Since i do not find outfields property or other ways to get other attributes. Are there any way to get the entire attributes list? 

 

Many thanks!

Outcomes