ArcGIS Runtime SDK for iOS
100.15
|
Parts of a multipart geometry (AGSMultipart
).
Instances of this class represent the parts 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.
This class adopts NSFastEnumeration
which permits the collection to be enumerated conveniently using a for-in loop. For example -
This class also provides subscripting support. So you can access segments using the subscript syntax. For example -
AGSMultipart
for multipart geometries Instance Methods | |
(NSArray< AGSPart * > *) | - array |
(NSInteger) | - indexOfPart: |
(AGSPart *) | - objectAtIndexedSubscript: |
(AGSPart *) | - partAtIndex: |
(AGSEnumerator *) | - partEnumerator |
Properties | |
NSInteger | count |
BOOL | empty |
AGSSpatialReference * | spatialReference |
NSInteger | totalPointCount |
- (NSArray<AGSPart*>*) array |
An array of parts.
- (NSInteger) indexOfPart: | (AGSPart *) | part |
The index of the specified part.
part | The part whose index needs to be located. |
- (AGSPart*) objectAtIndexedSubscript: | (NSInteger) | idx |
The part at the specified index. Supports accessing an individual part using array-style subscript expressions.
idx | An index within the bounds of the collection. |
- (AGSPart*) partAtIndex: | (NSInteger) | index |
The part at the specified index.
index | An index within the bounds of the collection. |
- (AGSEnumerator*) partEnumerator |
An enumerator object that lets you access each object in the part collection.
|
readnonatomicassign |
The number of parts of the geometry.
|
readnonatomicassign |
Indicates whether the collection is empty or not.
|
readnonatomicstrong |
The spatial reference associated with parts in the collection. It specifies the coordinate system for each part's x & y coordinate values. All parts in this collection must have the same spatial reference, or if they don't have a spatial reference, it will be assumed that they contain coordinates that match this spatial reference.
|
readnonatomicassign |
The total number of points (vertices) across all parts of the geometry.