ArcGIS Runtime SDK for iOS: AGSPointCollection.h Source File
ArcGIS Runtime SDK for iOS  100.15
AGSPointCollection.h
Go to the documentation of this file.
1 /*
2  COPYRIGHT 2022 ESRI
3 
4  All rights reserved under the copyright laws of the United States
5  and applicable international laws, treaties, and conventions.
6 
7  This material is licensed for use under the Esri Master License
8  Agreement (MLA), and is bound by the terms of that agreement.
9  You may redistribute and use this code without modification,
10  provided you adhere to the terms of the MLA and include this
11  copyright notice.
12 
13  See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english
14 
15  For additional information, contact:
16  Environmental Systems Research Institute, Inc.
17  Attn: Contracts and Legal Services Department
18  380 New York Street
19  Redlands, California, 92373
20  USA
21 
22  email: contracts@esri.com
23  */
24 
25 #import <Foundation/Foundation.h>
26 #import <ArcGIS/AGSObject.h>
27 
28 @class AGSPoint;
29 @class AGSEnumerator;
30 @class AGSSpatialReference;
31 
41 @interface AGSPointCollection : AGSObject <NSFastEnumeration>
42 
43 
44 
45 
46 #pragma mark -
47 #pragma mark properties
48 
54 @property (nonatomic, assign, readonly) NSInteger count;
55 
61 @property (nonatomic, assign, readonly, getter=isEmpty) BOOL empty;
62 
69 @property (nullable, nonatomic, strong, readonly) AGSSpatialReference *spatialReference;
70 
71 #pragma mark -
72 #pragma mark methods
73 
81 -(AGSPoint*)pointAtIndex:(NSInteger)index;
82 
90 -(NSInteger)indexOfPoint:(AGSPoint*)point;
91 
107 -(AGSPoint*)objectAtIndexedSubscript:(NSInteger)idx;
108 
113 -(AGSEnumerator*)pointEnumerator;
114 
119 -(NSArray<AGSPoint*>*)array;
120 
125 -(void)enumerateXYCoordinatesUsingBlock:(void(^)(NSUInteger index, double x, double y))block;
126 
127 
128 @end
Definition: AGSObject.h:28
Represents vertices (immutable collection of points) of a single part of a multipart geometry (AGSMul...
Definition: AGSPointCollection.h:41
AGSEnumerator * pointEnumerator()
NSInteger count
Definition: AGSPointCollection.h:54
BOOL empty
Definition: AGSPointCollection.h:61
NSArray< AGSPoint * > * array()
AGSSpatialReference * spatialReference
Definition: AGSPointCollection.h:69
A location defined by x and y (and optionally z) coordinates.
Definition: AGSPoint.h:73
Represents the spatial reference of a geometry.
Definition: AGSSpatialReference.h:49