ArcGIS Runtime SDK for iOS: AGSCoordinateFormatter.h Source File
ArcGIS Runtime SDK for iOS  100.15
AGSCoordinateFormatter.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  //Required for Globals API doc
26 
27 #import <Foundation/Foundation.h>
28 #import <ArcGIS/AGSObject.h>
29 
30 
31 
35 typedef NS_ENUM(NSInteger, AGSGARSConversionMode) {
38 };
39 
44 typedef NS_ENUM(NSInteger, AGSMGRSConversionMode) {
50 };
51 
63 typedef NS_ENUM(NSInteger, AGSUTMConversionMode) {
66 };
67 
72 typedef NS_ENUM(NSInteger, AGSLatitudeLongitudeFormat) {
76 };
77 
78 @class AGSPoint;
79 @class AGSSpatialReference;
80 
89 
90 #pragma mark -
91 #pragma mark initializers
92 
93 
94 
95 #pragma mark -
96 #pragma mark properties
97 
98 #pragma mark -
99 #pragma mark methods
100 
101 // Strings to Points
102 
117 +(nullable AGSPoint*)pointFromGARSString:(NSString*)GARSString
118  spatialReference:(nullable AGSSpatialReference*)spatialReference
119  conversionMode:(AGSGARSConversionMode)conversionMode;
120 
134 +(nullable AGSPoint*)pointFromGEOREFString:(NSString*)GEOREFString
135  spatialReference:(nullable AGSSpatialReference*)spatialReference;
136 
137 
172 +(nullable AGSPoint*)pointFromLatitudeLongitudeString:(NSString*)latLongString
173  spatialReference:(nullable AGSSpatialReference*)spatialReference;
174 
189 +(nullable AGSPoint*)pointFromMGRSString:(NSString*)MGRSString
190  spatialReference:(nullable AGSSpatialReference*)spatialReference
191  conversionMode:(AGSMGRSConversionMode)conversionMode;
192 
206 +(nullable AGSPoint*)pointFromUSNGString:(NSString*)USNGString
207  spatialReference:(nullable AGSSpatialReference*)spatialReference;
208 
209 
225  +(nullable AGSPoint*)pointFromUTMString:(NSString*)UTMString
226  spatialReference:(nullable AGSSpatialReference*)spatialReference
227  conversionMode:(AGSUTMConversionMode)conversionMode;
228 
229 // Points to Strings
230 
236 +(nullable NSString*)GARSStringFromPoint:(AGSPoint*)point;
237 
238 
257 +(nullable NSString*)GEOREFStringFromPoint:(AGSPoint*)point
258  precision:(NSInteger)precision;
259 
286 +(nullable NSString*)LatitudeLongitudeStringFromPoint:(AGSPoint*)point
287  format:(AGSLatitudeLongitudeFormat)format
288  decimalPlaces:(NSInteger)decimalPlaces;
289 
314 +(nullable NSString*)MGRSStringFromPoint:(AGSPoint*)point
315  conversionMode:(AGSMGRSConversionMode)conversionMode
316  precision:(NSInteger)precision
317  addSpaces:(BOOL)addSpaces;
318 
345 +(nullable NSString*)USNGStringFromPoint:(AGSPoint*)point
346  precision:(NSInteger)precision
347  addSpaces:(BOOL)addSpaces;
348 
349 
365 +(nullable NSString*)UTMStringFromPoint:(AGSPoint*)point
366  conversionMode:(AGSUTMConversionMode)conversionMode
367  addSpaces:(BOOL)addSpaces;
368 
369 @end
370 
371 
AGSLatitudeLongitudeFormat
Definition: AGSCoordinateFormatter.h:72
@ AGSLatitudeLongitudeFormatDecimalDegrees
Definition: AGSCoordinateFormatter.h:73
@ AGSLatitudeLongitudeFormatDegreesDecimalMinutes
Definition: AGSCoordinateFormatter.h:74
@ AGSLatitudeLongitudeFormatDegreesMinutesSeconds
Definition: AGSCoordinateFormatter.h:75
AGSMGRSConversionMode
Definition: AGSCoordinateFormatter.h:44
@ AGSMGRSConversionModeNew180InZone60
Definition: AGSCoordinateFormatter.h:47
@ AGSMGRSConversionModeNew180InZone01
Definition: AGSCoordinateFormatter.h:46
@ AGSMGRSConversionModeOld180InZone60
Definition: AGSCoordinateFormatter.h:49
@ AGSMGRSConversionModeOld180InZone01
Definition: AGSCoordinateFormatter.h:48
@ AGSMGRSConversionModeAutomatic
Definition: AGSCoordinateFormatter.h:45
AGSGARSConversionMode
Definition: AGSCoordinateFormatter.h:35
@ AGSGARSConversionModeCenter
Definition: AGSCoordinateFormatter.h:37
@ AGSGARSConversionModeLowerLeft
Definition: AGSCoordinateFormatter.h:36
AGSUTMConversionMode
Definition: AGSCoordinateFormatter.h:63
@ AGSUTMConversionModeNorthSouthIndicators
Definition: AGSCoordinateFormatter.h:65
@ AGSUTMConversionModeLatitudeBandIndicators
Definition: AGSCoordinateFormatter.h:64
Formatter to convert between coordinates and their string representation.
Definition: AGSCoordinateFormatter.h:89
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