ArcGIS Runtime SDK for iOS: AGSSpatialReference.h Source File
ArcGIS Runtime SDK for iOS  100.15
AGSSpatialReference.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/AGSJSONSerializable.h>
28 
29 @class AGSLinearUnit;
30 @class AGSUnit;
31 @class AGSPoint;
32 
50 
51 
52 #pragma mark -
53 #pragma mark initializers
54 
55 
56 
61 -(nullable instancetype)initWithWKID:(NSInteger)WKID;
62 
67 -(nullable instancetype)initWithWKText:(NSString*)WKText;
68 
72 -(nullable instancetype)initWithWKID:(NSInteger)WKID verticalWKID:(NSInteger)verticalWKID;
73 
79 +(nullable instancetype)spatialReferenceWithWKID:(NSInteger)WKID;
80 
86 +(nullable instancetype)spatialReferenceWithWKText:(NSString *)WKText;
87 
94 +(nullable instancetype)spatialReferenceWithWKID:(NSInteger)WKID verticalWKID:(NSInteger)verticalWKID;
95 
100 
105 
106 #pragma mark -
107 #pragma mark properties
108 
115 @property (nonatomic, assign, readonly) NSInteger WKID;
116 
120 @property (nonatomic, copy, readonly) NSString *WKText;
121 
125 @property (nonatomic, strong, readonly) AGSUnit *unit;
126 
132 @property (nullable, nonatomic, strong, readonly) AGSLinearUnit *verticalUnit;
133 
141 @property (nullable, nonatomic, strong, readonly) AGSSpatialReference *baseGeographic;
142 
146 @property (nonatomic, assign, readonly, getter=isGeographic) BOOL geographic;
147 
163 @property (nonatomic, assign, readonly) BOOL hasVertical;
164 
168 @property (nonatomic, assign, readonly, getter=isPannable) BOOL pannable;
169 
173 @property (nonatomic, assign, readonly, getter=isProjected) BOOL projected;
174 
183 @property (nonatomic, assign, readonly) NSInteger verticalWKID;
184 
185 #pragma mark -
186 #pragma mark methods
187 
214 -(double)convergenceAngleWithPoint:(AGSPoint*)point;
215 
221 -(BOOL)isEqualToSpatialReference:(AGSSpatialReference*)other;
222 
223 
224 @end
Defines a linear unit of measurement.
Definition: AGSLinearUnit.h:60
Definition: AGSObject.h:28
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
BOOL hasVertical
Definition: AGSSpatialReference.h:163
BOOL pannable
Definition: AGSSpatialReference.h:168
BOOL geographic
Definition: AGSSpatialReference.h:146
AGSLinearUnit * verticalUnit
Definition: AGSSpatialReference.h:132
AGSSpatialReference * baseGeographic
Definition: AGSSpatialReference.h:141
AGSSpatialReference * WGS84()
NSString * WKText
Definition: AGSSpatialReference.h:120
AGSSpatialReference * webMercator()
AGSUnit * unit
Definition: AGSSpatialReference.h:125
NSInteger WKID
Definition: AGSSpatialReference.h:115
BOOL projected
Definition: AGSSpatialReference.h:173
NSInteger verticalWKID
Definition: AGSSpatialReference.h:183
Defines a unit of measurement.
Definition: AGSUnit.h:68
A protocol to convert objects to and from JSON.
Definition: AGSJSONSerializable.h:38