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

Description

A base class for all geometry objects.

Defined in:
AGSGeometry.h ( ArcGIS library)

Since
1.0
Inheritance diagram for AGSGeometry:
<AGSCoding> AGSEnvelope AGSMultipoint AGSPoint AGSPolygon AGSPolyline AGSMutableEnvelope AGSMutableMultipoint AGSMutablePoint AGSMutablePolygon AGSMutablePolyline

Instance Methods

(void) - decodeWithJSON:
 
(NSDictionary *) - encodeToJSON
 
(id) - initWithJSON:
 
(id) - initWithJSON:spatialReference:
 
(id) - initWithSpatialReference:
 
(BOOL) - intersectsWithEnvelope:
 
(BOOL) - isEmpty
 
(BOOL) - isValid
 

Properties

AGSEnvelopeenvelope
 
AGSSpatialReferencespatialReference
 

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.

- (id) initWithJSON: (NSDictionary *)  json
spatialReference: (AGSSpatialReference *)  sr 

Initialize geometry object with json and a spatial reference.

Parameters
jsonThe JSON to initialize an AGSGeometry with.
srThe spatial reference of geometry represented in json.
Returns
A new geometry object.
Since
1.0
- (id) initWithSpatialReference: (AGSSpatialReference *)  spatialReference

Initialize geometry object with spatial reference.

Parameters
spatialReferenceThe spatial referenc of geometry.
Returns
A new geometry object.
Since
1.0
- (BOOL) intersectsWithEnvelope: (AGSEnvelope *)  envelope

Returns true if envelope intersects this geometry.

Parameters
envelopeThe envelope to test intersection relation.
Returns
True if envelopes intersects.
Since
1.0

Implemented in AGSEnvelope.

- (BOOL) isEmpty

Returns whether or not the geometry is empty.

Since
1.8

Implemented in AGSEnvelope.

- (BOOL) isValid

Returns whether or not the geometry is valid.

Since
1.8

Property Documentation

- (AGSEnvelope*) envelope
readnonatomiccopy

Smallest, rectangular bounding-box that covers the geometry.

Since
1.0
- (AGSSpatialReference*) spatialReference
readnonatomicstrong

Geometry's spatial reference.

Since
1.0