ArcGIS Runtime SDK for iOS: AGSGeometryBuilder.h Source File
ArcGIS Runtime SDK for iOS  100.11
AGSGeometryBuilder.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/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 
52 +(AGSGeometryBuilder*)builderWithGeometry:(nullable AGSGeometry*)geometry;
53 
59 +(AGSGeometryBuilder*)builderWithGeometryType:(AGSGeometryType)geometryType spatialReference:(nullable AGSSpatialReference*)sr;
60 
61 #pragma mark -
62 #pragma mark properties
63 
69 @property (nullable, nonatomic, strong, readonly) AGSSpatialReference *spatialReference;
70 
75 @property (nonatomic, strong, readonly) AGSEnvelope *extent;
76 
81 @property (nonatomic, assign, readonly) BOOL hasZ;
82 
87 @property (nonatomic, assign, readonly) BOOL hasM;
88 
92 @property (nonatomic, assign, readonly) AGSGeometryType geometryType;
93 
94 #pragma mark -
95 #pragma mark methods
96 
102 -(BOOL)isEmpty;
103 
109 -(instancetype)replaceGeometry:(nullable AGSGeometry*)geometry;
110 
116 
117 
118 @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:69
BOOL hasM
Definition: AGSGeometryBuilder.h:87
AGSGeometryType geometryType
Definition: AGSGeometryBuilder.h:92
AGSGeometry * toGeometry()
BOOL hasZ
Definition: AGSGeometryBuilder.h:81
AGSEnvelope * extent
Definition: AGSGeometryBuilder.h:75
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:46