ArcGIS Runtime SDK for iOS: AGSGeometryBuilder.h Source File
ArcGIS Runtime SDK for iOS  100.15
AGSGeometryBuilder.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 #import <ArcGIS/AGSGeometry.h>
28 
29 @class AGSSpatialReference;
30 @class AGSEnvelope;
31 
43 
44 
45 #pragma mark -
46 #pragma mark initializers
47 
53 +(AGSGeometryBuilder*)builderWithGeometry:(nullable AGSGeometry*)geometry;
54 
66 +(AGSGeometryBuilder*)builderWithGeometryType:(AGSGeometryType)geometryType spatialReference:(nullable AGSSpatialReference*)sr;
67 
68 #pragma mark -
69 #pragma mark properties
70 
76 @property (nullable, nonatomic, strong, readonly) AGSSpatialReference *spatialReference;
77 
82 @property (nonatomic, strong, readonly) AGSEnvelope *extent;
83 
88 @property (nonatomic, assign, readonly) BOOL hasZ;
89 
94 @property (nonatomic, assign, readonly) BOOL hasM;
95 
99 @property (nonatomic, assign, readonly) AGSGeometryType geometryType;
100 
116 @property (nonatomic, assign, readonly) BOOL hasCurves;
117 
118 #pragma mark -
119 #pragma mark methods
120 
126 -(BOOL)isEmpty;
127 
140 -(instancetype)replaceGeometry:(nullable AGSGeometry*)geometry;
141 
147 
148 
149 @end
AGSGeometryType
Definition: AGSGeometry.h:49
A geometry that represents a rectangular shape.
Definition: AGSEnvelope.h:55
A builder to build geometries.
Definition: AGSGeometryBuilder.h:43
AGSSpatialReference * spatialReference
Definition: AGSGeometryBuilder.h:76
BOOL hasM
Definition: AGSGeometryBuilder.h:94
AGSGeometryType geometryType
Definition: AGSGeometryBuilder.h:99
AGSGeometry * toGeometry()
BOOL hasZ
Definition: AGSGeometryBuilder.h:88
BOOL hasCurves
Definition: AGSGeometryBuilder.h:116
AGSEnvelope * extent
Definition: AGSGeometryBuilder.h:82
Base class for all classes that represent geometric shapes.
Definition: AGSGeometry.h:121
Definition: AGSObject.h:28
Represents the spatial reference of a geometry.
Definition: AGSSpatialReference.h:49