OAFCollection

Objective-C

@interface OAFCollection : OAFFeaturesObject

Swift

class OAFCollection : OAFFeaturesObject

Collection

  • id

    Identifier of the collection used

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *id;

    Swift

    var id: String! { get set }
  • Human readable title of the collection

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *title;

    Swift

    var title: String! { get set }
  • A description of the features in the collection

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *theDescription;

    Swift

    var theDescription: String! { get set }
  • Collection of links

    Declaration

    Objective-C

    @property (nonatomic, strong) NSMutableArray<OAFLink *> *links;

    Swift

    var links: NSMutableArray! { get set }
  • Extent

    Declaration

    Objective-C

    @property (nonatomic, strong) OAFExtent *extent;

    Swift

    var extent: OAFExtent! { get set }
  • crs

    The list of coordinate reference systems supported by the service; the first item is the default coordinate reference system

    Declaration

    Objective-C

    @property (nonatomic, strong) NSMutableArray<NSString *> *crs;

    Swift

    var crs: NSMutableArray! { get set }
  • Indicator about the type of the items in the collection (the default value is ‘feature’)

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *itemType;

    Swift

    var itemType: String! { get set }
  • Initialize

    Declaration

    Objective-C

    - (instancetype)init;

    Swift

    init!()

    Return Value

    new collection

  • Initialize

    Declaration

    Objective-C

    - (instancetype)initWithId:(NSString *)id;

    Swift

    init!(id: String!)

    Parameters

    id

    id

    Return Value

    new collection

  • Initialize

    Declaration

    Objective-C

    - (instancetype)initWithTree:(NSDictionary *)tree;

    Swift

    init!(tree: [AnyHashable : Any]!)

    Parameters

    tree

    JSON tree

    Return Value

    new collection

  • Add a link

    Declaration

    Objective-C

    - (void)addLink:(OAFLink *)link;

    Swift

    func addLink(_ link: OAFLink!)

    Parameters

    link

    link

  • Add a crs

    Declaration

    Objective-C

    - (void)addCrs:(NSString *)crs;

    Swift

    func addCrs(_ crs: String!)

    Parameters

    crs

    crs