PROJProjectionRetriever
Objective-C
@interface PROJProjectionRetriever : NSObject
Swift
class PROJProjectionRetriever : NSObject
Retrieves the proj4 projection parameter string for an authority and coordinate code
-
Get the proj4 projection string for the EPSG code
Declaration
Objective-C
+ (NSString *)projectionWithEpsg:(NSNumber *)epsg;
Swift
class func projection(withEpsg epsg: NSNumber!) -> String!
Parameters
epsg
EPSG code
Return Value
projection string
-
Get the proj4 projection string for the authority coordinate code
Declaration
Objective-C
+ (NSString *)projectionWithAuthority:(NSString *)authority andNumberCode:(NSNumber *)code;
Swift
class func projection(withAuthority authority: String!, andNumberCode code: NSNumber!) -> String!
Parameters
authority
coordinate authority
code
coordinate code
Return Value
proj4 projection
-
Get the proj4 projection string for the authority coordinate code
Declaration
Objective-C
+ (NSString *)projectionWithAuthority:(NSString *)authority andCode:(NSString *)code;
Swift
class func projection(withAuthority authority: String!, andCode code: String!) -> String!
Parameters
authority
coordinate authority
code
coordinate code
Return Value
proj4 projection
-
Get or create the projection properties
Declaration
Objective-C
+ (NSMutableDictionary *)getOrCreateProjectionsForAuthority: (NSString *)authority;
Swift
class func getOrCreateProjections(forAuthority authority: String!) -> NSMutableDictionary!
Parameters
authority
coordinate authority
Return Value
projection properties
-
Get the projection properties for the authority
Declaration
Objective-C
+ (NSMutableDictionary *)projectionsForAuthority:(NSString *)authority;
Swift
class func projections(forAuthority authority: String!) -> NSMutableDictionary!
Parameters
authority
coordinate authority
Return Value
projection properties
-
Clear the properties for all authorities
Declaration
Objective-C
+ (void)clear;
Swift
class func clear()
-
Clear the properties for the authority
Declaration
Objective-C
+ (void)clearAuthority:(NSString *)authority;
Swift
class func clearAuthority(_ authority: String!)
Parameters
authority
coordinate authority
-
Clear the property for the authority code
Declaration
Objective-C
+ (void)clearAuthority:(NSString *)authority andNumberCode:(NSNumber *)code;
Swift
class func clearAuthority(_ authority: String!, andNumberCode code: NSNumber!)
Parameters
authority
coordinate authority
code
coordinate code
-
Clear the property for the authority code
Declaration
Objective-C
+ (void)clearAuthority:(NSString *)authority andCode:(NSString *)code;
Swift
class func clearAuthority(_ authority: String!, andCode code: String!)
Parameters
authority
coordinate authority
code
coordinate code
-
Get the properties file path for the authority
Resulting Path to file: projections.{authority}.plist
Declaration
Objective-C
+ (NSString *)propertiesPathForAuthority:(NSString *)authority;
Swift
class func propertiesPath(forAuthority authority: String!) -> String!
Parameters
authority
coordinate authority
Return Value
property file name
-
Set the projections for the authority with the properties
Declaration
Objective-C
+ (void)setProjections:(NSMutableDictionary *)projections forAuthority:(NSString *)authority;
Swift
class func setProjections(_ projections: NSMutableDictionary!, forAuthority authority: String!)
Parameters
projections
properties dictionary
authority
coordinate authority
-
Set the projection for the authority and code, creating the authority if needed
Declaration
Objective-C
+ (void)setProjection:(NSString *)projection forAuthority:(NSString *)authority andNumberCode:(NSNumber *)code;
Swift
class func setProjection(_ projection: String!, forAuthority authority: String!, andNumberCode code: NSNumber!)
Parameters
projection
proj4 projection
authority
coordinate authority
code
coordinate code
-
Set the projection for the authority and code, creating the authority if needed
Declaration
Objective-C
+ (void)setProjection:(NSString *)projection forAuthority:(NSString *)authority andCode:(NSString *)code;
Swift
class func setProjection(_ projection: String!, forAuthority authority: String!, andCode code: String!)
Parameters
projection
proj4 projection
authority
coordinate authority
code
coordinate code