ArcGIS Runtime SDK for iOS: AGSPolygonBuilder.h Source File
ArcGIS Runtime SDK for iOS  100.11
AGSPolygonBuilder.h
Go to the documentation of this file.
1 /*
2  COPYRIGHT 2021 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/AGSMultipartBuilder.h>
27 
28 @class AGSPolygon;
29 @class AGSPolyline;
30 @class AGSPoint;
31 
42 
43 
44 #pragma mark -
45 #pragma mark initializers
46 
47 
48 
55 -(instancetype)initWithSpatialReference:(nullable AGSSpatialReference*)sr;
56 
63 +(instancetype)polygonBuilderWithSpatialReference:(nullable AGSSpatialReference*)sr;
64 
71 -(instancetype)initWithPoints:(NSArray<AGSPoint*>*)points;
72 
79 +(instancetype)polygonBuilderWithPoints:(NSArray<AGSPoint*>*)points;
80 
87 -(instancetype)initWithPolygon:(nullable AGSPolygon*)poly;
88 
95 +(instancetype)polygonBuilderWithPolygon:(nullable AGSPolygon*)poly;
96 
97 #pragma mark -
98 #pragma mark methods
99 
107 -(instancetype)replaceGeometry:(nullable AGSPolygon*)geometry;
108 
116 
118 
119 
120 @end
A builder to construct or modify multipart geometries.
Definition: AGSMultipartBuilder.h:40
A location defined by x and y (and optionally z) coordinates.
Definition: AGSPoint.h:73
A builder to build polygon geometries.
Definition: AGSPolygonBuilder.h:42
AGSPolygon * toGeometry()
AGSPolyline * toPolyline()
A multipart shape used to represent an area.
Definition: AGSPolygon.h:78
A multipart linear shape.
Definition: AGSPolyline.h:68
Represents the spatial reference of a geometry.
Definition: AGSSpatialReference.h:46