ArcGIS Runtime SDK for iOS: AGSFeature Class Reference
ArcGIS Runtime SDK for iOS  100.15
AGSFeature Class Reference

Description

A representation of a real-world object on a map.

Instances of this class represent a real-world object on a map.

A feature is persisted in a feature table in a data store (such as a database or service) or in a map and features in the same data store or feature layer have a common attribute schema. A feature can contain a set of attributes (key-value pairs) providing more information about the real-world entity it represents. Attribute types supported are NSNull, NSString, NSDate, and NSNumber. All other attribute types will be ignored. A feature can also have a geometry which describes the location and the shape of the entity.

Since
100
Inheritance diagram for AGSFeature:
AGSObject <AGSGeoElement> AGSArcGISFeature

Instance Methods

(BOOL) - refresh
 

Properties

NSMutableDictionary< NSString *, id > * attributes
 
AGSFeatureTablefeatureTable
 
AGSGeometrygeometry
 

Method Documentation

◆ refresh

- (BOOL) refresh

Resets the attributes and geometry to the values in the data source. This will discards any in-memory changes to the feature that have not been applied to the table, and reloads the feature geometry and all attributes.

Returns
A value indicating whether the geometry or attributes were updated.
Since
100.4

Property Documentation

◆ attributes

- (NSMutableDictionary<NSString*,id>*) attributes
readnonatomicstrong

A dictionary containing all the attributes. Attribute types supported are NSNull, NSString, NSDate, and NSNumber. Other attribute types will be ignored.

Since
100

◆ featureTable

- (AGSFeatureTable*) featureTable
readnonatomicweak

The dataset that this feature belongs to.

Since
100

◆ geometry

- (AGSGeometry*) geometry
readwritenonatomicstrong

The geometry that defines shape and location.

Since
100