OAFSpatial

Objective-C

@interface OAFSpatial : OAFFeaturesObject

Swift

class OAFSpatial : OAFFeaturesObject

The spatial extent of the features in the collection.

  • One or more bounding boxes that describe the spatial extent of the dataset. In the Core only a single bounding box is supported. Extensions may support additional areas. If multiple areas are provided, the union of the bounding boxes describes the spatial extent.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSMutableArray<NSMutableArray<NSDecimalNumber *> *> *bbox;

    Swift

    var bbox: NSMutableArray! { get set }
  • crs

    Coordinate reference system of the coordinates in the spatial extent (property bbox). The default reference system is WGS 84 longitude/latitude. In the Core this is the only supported coordinate reference system. Extensions may support additional coordinate reference systems and add additional enum values.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *crs;

    Swift

    var crs: String! { get set }
  • Initialize

    Declaration

    Objective-C

    - (instancetype)init;

    Swift

    init!()

    Return Value

    new spatial

  • Initialize

    Declaration

    Objective-C

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

    Swift

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

    Parameters

    tree

    JSON tree

    Return Value

    new spatial

  • Get the bounding box collection count

    Declaration

    Objective-C

    - (int)bboxCount;

    Swift

    func bboxCount() -> Int32

    Return Value

    count

  • Get the first bounding box

    Declaration

    Objective-C

    - (NSMutableArray<NSDecimalNumber *> *)firstBbox;

    Swift

    func firstBbox() -> NSMutableArray!

    Return Value

    bounding box

  • Get the bounding box at the index

    Declaration

    Objective-C

    - (NSMutableArray<NSDecimalNumber *> *)bboxAtIndex:(int)index;

    Swift

    func bbox(at index: Int32) -> NSMutableArray!

    Parameters

    index

    0 based index

    Return Value

    bounding box

  • Add a bounding box

    Declaration

    Objective-C

    - (void)addBbox:(NSMutableArray<NSDecimalNumber *> *)bbox;

    Swift

    func addBbox(_ bbox: NSMutableArray!)

    Parameters

    bbox

    single bounding box