OAFCrs

Objective-C

@interface OAFCrs : NSObject

Swift

class OAFCrs : NSObject

Coordinate Reference System

http://www.opengis.net/def/crs/{authority}/{version}/{code}

  • CRS Authority

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *authority;

    Swift

    var authority: String! { get set }
  • CRS Version

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *version;

    Swift

    var version: String! { get set }
  • CRS Code

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *code;

    Swift

    var code: String! { get set }
  • Initialize

    Declaration

    Objective-C

    - (instancetype)init;

    Swift

    init!()

    Return Value

    new crs

  • Initialize

    Declaration

    Objective-C

    - (instancetype)initWithCrs:(NSString *)crs;

    Swift

    init!(crs: String!)

    Parameters

    crs

    CRS URL

    Return Value

    new crs

  • Initialize

    Declaration

    Objective-C

    - (instancetype)initWithAuthority:(NSString *)authority
                           andVersion:(NSString *)version
                              andCode:(NSString *)code;

    Swift

    init!(authority: String!, andVersion version: String!, andCode code: String!)

    Parameters

    authority

    authority

    version

    version

    code

    code

    Return Value

    new crs

  • Set the CRS

    Declaration

    Objective-C

    - (BOOL)setCrs:(NSString *)crs;

    Swift

    func setCrs(_ crs: String!) -> Bool

    Parameters

    crs

    CRS URL

    Return Value

    true if a valid CRS and values were set

  • Determine if all parts of the CRS are set

    Declaration

    Objective-C

    - (BOOL)isValid;

    Swift

    func isValid() -> Bool

    Return Value

    true if valid