ArcGIS Runtime SDK for iOS: AGSSpatialReference.h Source File
ArcGIS Runtime SDK for iOS  100.11
AGSSpatialReference.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/AGSJSONSerializable.h>
28 
29 @class AGSUnit;
30 @class AGSPoint;
31 
47 
48 
49 #pragma mark -
50 #pragma mark initializers
51 
52 
53 
60 -(nullable instancetype)initWithWKID:(NSInteger)WKID;
61 
68 -(nullable instancetype)initWithWKText:(NSString*)WKText;
69 
73 -(nullable instancetype)initWithWKID:(NSInteger)WKID verticalWKID:(NSInteger)verticalWKID;
74 
81 +(nullable instancetype)spatialReferenceWithWKID:(NSInteger)WKID;
82 
89 +(nullable instancetype)spatialReferenceWithWKText:(NSString *)WKText;
90 
94 +(nullable instancetype)spatialReferenceWithWKID:(NSInteger)WKID verticalWKID:(NSInteger)verticalWKID;
95 
101 
107 
108 #pragma mark -
109 #pragma mark properties
110 
118 @property (nonatomic, assign, readonly) NSInteger WKID;
119 
125 @property (nonatomic, copy, readonly) NSString *WKText;
126 
132 @property (nonatomic, strong, readonly) AGSUnit *unit;
133 
139 @property (nullable, nonatomic, strong, readonly) AGSSpatialReference *baseGeographic;
140 
144 @property (nonatomic, assign, readonly, getter=isGeographic) BOOL geographic;
145 
161 @property (nonatomic, assign, readonly) BOOL hasVertical;
162 
166 @property (nonatomic, assign, readonly, getter=isPannable) BOOL pannable;
167 
171 @property (nonatomic, assign, readonly, getter=isProjected) BOOL projected;
172 
181 @property (nonatomic, assign, readonly) NSInteger verticalWKID;
182 
183 #pragma mark -
184 #pragma mark methods
185 
206 -(double)convergenceAngleWithPoint:(AGSPoint*)point;
207 
215 -(BOOL)isEqualToSpatialReference:(AGSSpatialReference*)other;
216 
217 
218 @end
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:46
BOOL hasVertical
Definition: AGSSpatialReference.h:161
BOOL pannable
Definition: AGSSpatialReference.h:166
BOOL geographic
Definition: AGSSpatialReference.h:144
AGSSpatialReference * baseGeographic
Definition: AGSSpatialReference.h:139
AGSSpatialReference * WGS84()
NSString * WKText
Definition: AGSSpatialReference.h:125
AGSSpatialReference * webMercator()
AGSUnit * unit
Definition: AGSSpatialReference.h:132
NSInteger WKID
Definition: AGSSpatialReference.h:118
BOOL projected
Definition: AGSSpatialReference.h:171
NSInteger verticalWKID
Definition: AGSSpatialReference.h:181
Defines a unit of measurement.
Definition: AGSUnit.h:68
A protocol to convert objects to and from JSON.
Definition: AGSJSONSerializable.h:38