ArcGIS Runtime SDK for iOS
100.15
|
Represents vertices (immutable collection of points) of a single part of a multipart geometry (AGSMultipart
).
Instances of this class represent the vertices of a single part of a multipart geometry (AGSMultipart
). For example, polygons have multiple parts where each part is a ring and polylines have multiple parts where each part is a line. Each part is composed of a sequence of points. All points must have the same spatial reference.
AGSMultipart
for multipart geometries AGSPartCollection
for parts of a multipart geometry Instance Methods | |
(NSArray< AGSPoint * > *) | - array |
(void) | - enumerateXYCoordinatesUsingBlock: |
(NSInteger) | - indexOfPoint: |
(AGSPoint *) | - objectAtIndexedSubscript: |
(AGSPoint *) | - pointAtIndex: |
(AGSEnumerator *) | - pointEnumerator |
Properties | |
NSInteger | count |
BOOL | empty |
AGSSpatialReference * | spatialReference |
- (NSArray<AGSPoint*>*) array |
Returns an array of points.
- (void) enumerateXYCoordinatesUsingBlock: | (void(^)(NSUInteger index, double x, double y)) | block |
Allows you to enumerate the X and Y coordinates of this point collection with a block. This is faster than other ways of enumerating the part that give out AGSPoint instances.
- (NSInteger) indexOfPoint: | (AGSPoint *) | point |
Returns the index of the specified point.
point | The point whose index needs to be located. |
- (AGSPoint*) objectAtIndexedSubscript: | (NSInteger) | idx |
Returns the vertex at the specified index. Supports accessing an individual vertex using array-style subscript expressions.
idx | An index within the bounds of the collection. |
- (AGSPoint*) pointAtIndex: | (NSInteger) | index |
Returns the vertex at the specified index.
index | An index within the bounds of the collection. |
- (AGSEnumerator*) pointEnumerator |
Returns an enumerator object that lets you access each object in the point collection.
|
readnonatomicassign |
The number of points in this collection.
|
readnonatomicassign |
Determinse whether the collection is empty or not.
|
readnonatomicstrong |
The spatial reference associated with the collection. It specifies the coordinate system for the geometry's x, y, and z coordinate values.