10.2.5: AGSFeatureTemplate Class Reference
10.2.5
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
AGSFeatureTemplate Class Reference

Description

Instances of this class represent a feature template. A feature template defines all the information required to create a feature: the layer where a feature will be stored and the attributes a feature is created with.

Since
1.0
Inheritance diagram for AGSFeatureTemplate:
<AGSCoding>

Instance Methods

(void) - decodeWithJSON:
 
(NSDictionary *) - encodeToJSON
 
(id) - initWithJSON:
 

Properties

NSString * featureDescription
 
NSString * name
 
AGSGraphicprototype
 
NSDictionary * prototypeAttributes
 

Method Documentation

- (void) decodeWithJSON: (NSDictionary *)  json
optionalinherited

Decode object from JSON representation.

Parameters
jsonThe JSON representation of the object to be decoded.
Since
1.0
- (NSDictionary *) encodeToJSON
optionalinherited

Encode and return JSON representation for object.

Returns
JSON representation of object.
Since
1.0
- (id) initWithJSON: (NSDictionary *)  json
optionalinherited

Initialize and return object from JSON representation.

Parameters
jsonThe JSON representation of the object to be created.
Returns
Object decoded from JSON representation.
Since
1.0

Reimplemented in AGSWebMapFeatureCollection.

Property Documentation

- (NSString*) featureDescription
readnonatomiccopy

Description of the template.

Since
1.0
- (NSString*) name
readnonatomiccopy

Name of the template.

Since
1.0
- (AGSGraphic*) prototype
readnonatomicstrong

A prototypical feature associated with the template which can be used to easily create new features. The prototype specifies default values for the feature's attributes, however, it does not contain a geometry.

Deprecated:
Deprecated at 10.2 Use AGSFeatureTemplate::prototypeAttributes instead.
Since
1.0
- (NSDictionary*) prototypeAttributes
readnonatomiccopy

The attributes of a prototypical feature associated with the template. The template specifies default values for many of the attributes and can be used to easily create new features.

Since
10.2