CRSObject

Objective-C

@interface CRSObject : NSObject <CRSScopeExtentIdentifierRemark>

Swift

class CRSObject : NSObject, CRSScopeExtentIdentifierRemark

Well-known text representation of coordinate reference systems object

  • Type

    Declaration

    Objective-C

    @property (nonatomic) enum CRSType type;

    Swift

    var type: CRSType { get set }
  • Temporary extras that are not included as part of the CRS definition. Not included in equality and hashing.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSMutableDictionary<NSString *, NSObject *> *extras;

    Swift

    var extras: NSMutableDictionary! { get set }
  • Initialize

    Declaration

    Objective-C

    - (instancetype)init;

    Swift

    init!()

    Return Value

    new instance

  • Initialize

    Declaration

    Objective-C

    - (instancetype)initWithType:(enum CRSType)type;

    Swift

    init!(type: CRSType)

    Parameters

    type

    coordinate reference system type

    Return Value

    new instance

  • Get the category type

    Declaration

    Objective-C

    - (enum CRSCategoryType)categoryType;

    Swift

    func categoryType() -> CRSCategoryType

    Return Value

    category type

  • Determine if there are temporary extras that are not part of the CRS definition

    Declaration

    Objective-C

    - (BOOL)hasExtras;

    Swift

    func hasExtras() -> Bool

    Return Value

    true if extras

  • Get the number of temporary extras that are not part of the CRS definition

    Declaration

    Objective-C

    - (int)numExtras;

    Swift

    func numExtras() -> Int32

    Return Value

    number of extras

  • Get the temporary extra with the name

    Declaration

    Objective-C

    - (NSObject *)extraWithName:(NSString *)name;

    Swift

    func extra(withName name: String!) -> NSObject!

    Parameters

    name

    extra name

    Return Value

    extra value or null

  • Add the temporary extra which is not part of the CRS definition

    Declaration

    Objective-C

    - (void)addExtra:(NSObject *)extra withName:(NSString *)name;

    Swift

    func addExtra(_ extra: NSObject!, withName name: String!)

    Parameters

    name

    extra name

    extra

    extra value

  • Add the temporary extras which are not part of the CRS definition

    Declaration

    Objective-C

    - (void)addExtras:(NSMutableDictionary<NSString *, NSObject *> *)extras;

    Swift

    func addExtras(_ extras: NSMutableDictionary!)

    Parameters

    extras

    extra values