AGSMutablePolygon Class Reference
Description
A mutable version of AGSPolygon
.
- Defined in:
- AGSPolygon.h ( ArcGIS library)
- Since:
- 1.0
List of all members.
Member Function Documentation
- (void) addPoint: |
|
(AGSPoint *) |
point |
toRing: |
|
(NSUInteger) |
ring | |
|
|
| | |
Add point
at end of specified ring
.
- Parameters:
-
| point | The point to be added. |
| ring | The index of the ring to add point to. |
- Since:
- 1.0
- (void) addPointToRing: |
|
(AGSPoint *) |
point |
|
|
Add point
to end of current ring.
- Parameters:
-
| point | The point to be added. |
- Since:
- 1.0
- (void) addRingToPolygon |
|
|
|
|
Create new ring and add it to the polygon.
- Since:
- 1.0
Close the polygon if it is not closed. This means making the first vertex per part the same as the last vertex in that part. The server wants polygons to be closed when we send them to the server.
- Since:
- 1.8
- (BOOL) containsPoint: |
|
(AGSPoint *) |
point |
|
|
Checks whether point
is contained in the polygon. The point and the polygon must have the same spatial reference.
- Parameters:
-
| point | The point to test containment. |
- Returns:
YES
if point
is contained within the polygon.
- Since:
- 1.0
- (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
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
Initialize geometry object with spatial reference.
- Parameters:
-
| spatialReference | The spatial referenc of geometry. |
- Returns:
- A new geometry object.
- Since:
- 1.0
- (void) insertPoint: |
|
(AGSPoint *) |
point |
onRing: |
|
(NSUInteger) |
ring |
atIndex: |
|
(NSUInteger) |
index | |
|
|
| | |
Insert point
into ring
at specific index
.
- Parameters:
-
| point | The point to be added. |
| ring | The index of the ring to add point to. |
| index | The index to add point at. |
- Since:
- 1.0
- (void) insertRingAtIndex: |
|
(int) |
ringIndex |
|
|
Inserts a ring at a specific index.
- Since:
- 1.8
- (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.
Returns whether or not the geometry is empty.
- Since:
- 1.8
Reimplemented in AGSEnvelope.
Returns a value whether another polygon is equal to this polygon.
- Parameters:
-
| other | The other polygon to compare to. |
- Returns:
- Whether or not the other polygon is equal to this polygon.
- Since:
- 1.8
Returns whether or not the geometry is valid.
- Since:
- 1.8
- (NSUInteger) numPointsInRing: |
|
(NSUInteger) |
ring |
|
|
Get number of points in the specified ring.
- Parameters:
-
| ring | The index of desired ring in the polygon. |
- Returns:
- Number of points in ring.
- Since:
- 1.0
- (AGSPoint *) pointOnRing: |
|
(NSUInteger) |
ring |
atIndex: |
|
(NSUInteger) |
index | |
|
|
| | |
Get point from ring.
- Parameters:
-
| ring | The index of desired ring. |
| index | The index of the desired point. |
- Returns:
- Point in
ring
at index
.
- Since:
- 1.0
+ (id) polygonWithJSON: |
|
(NSDictionary *) |
json |
|
|
Initialize a new autoreleased polygon geometry.
- Parameters:
-
- Returns:
- A new, autoreleased, polygon geometry object.
- Since:
- 1.0
- (void) removePointOnRing: |
|
(NSUInteger) |
ring |
atIndex: |
|
(NSUInteger) |
index | |
|
|
| | |
Remove point from specified ring.
- Parameters:
-
| ring | The index of the ring to remove point from. |
| index | The index of the point to remove. |
- Since:
- 1.0
- (void) removeRingAtIndex: |
|
(NSUInteger) |
index |
|
|
Remove ring from polygon.
- Parameters:
-
| index | The index of the ring to be removed. |
- Since:
- 1.0
- (void) updatePoint: |
|
(AGSPoint*) |
point |
onRing: |
|
(NSUInteger) |
ring |
atIndex: |
|
(NSUInteger) |
index | |
|
|
| | |
Update point on specified ring
at index
with point
.
- Parameters:
-
| point | The point to replace value at current index. |
| ring | The index of the ring to update point at. |
| index | The index of the point to update. |
- Since:
- 1.0
Property Documentation
- (NSUInteger) numRings [read, assign, inherited] |
Number of rings in polygon.
- Since:
- 1.0
Geometry's spatial reference.
- Since:
- 1.0
Reimplemented from AGSGeometry.