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

List of all members.

Public Member Functions

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

Properties

AGSEnvelopeenvelope
AGSSpatialReferencespatialReference

Member Function Documentation

- (void) decodeWithJSON: (NSDictionary *)  json   [optional, inherited]

Decode object from JSON representation.

Parameters:
json The JSON representation of the object to be decoded.
Since:
1.0
- (NSDictionary *) encodeToJSON   [optional, inherited]

Encode and return JSON representation for object.

Returns:
JSON representation of object.
Since:
1.0
- (id) initWithJSON: (NSDictionary *)  json   [optional, inherited]

Initialize and return object from JSON representation.

Parameters:
json The JSON representation of the object to be created.
Returns:
Object decoded from JSON representation.
Since:
1.0
- (id) initWithJSON: (NSDictionary *)  json
spatialReference: (AGSSpatialReference*)  sr 

Initialize geometry object with json and a spatial reference.

Parameters:
json The JSON to initialize an AGSGeometry with.
sr The 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:
spatialReference The spatial referenc of geometry.
Returns:
A new geometry object.
Since:
1.0
- (BOOL) intersectsWithEnvelope: (AGSEnvelope *)  envelope  

Returns true if envelope intersects this geometry.

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

Reimplemented in AGSEnvelope.

- (BOOL) isEmpty  

Returns whether or not the geometry is empty.

Since:
1.8

Reimplemented in AGSEnvelope.

- (BOOL) isValid  

Returns whether or not the geometry is valid.

Since:
1.8

Property Documentation

- (AGSEnvelope*) envelope [read, retain]

Smallest, rectangular bounding-box that covers the geometry.

Since:
1.0
- (AGSSpatialReference*) spatialReference [read, retain]

Geometry's spatial reference.

Since:
1.0

Reimplemented in AGSMutableEnvelope, AGSMutableMultipoint, AGSMutablePoint, AGSMutablePolygon, and AGSMutablePolyline.