OAFTemporal

Objective-C

@interface OAFTemporal : OAFFeaturesObject

Swift

class OAFTemporal : OAFFeaturesObject

The temporal extent of the features in the collection.

  • One or more time intervals that describe the temporal extent of the dataset. The value null is supported and indicates an unbounded interval end. In the Core only a single time interval is supported. Extensions may support multiple intervals. If multiple intervals are provided, the union of the intervals describes the temporal extent.

    Declaration

    Objective-C

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

    Swift

    var interval: NSMutableArray! { get set }
  • trs

    Coordinate reference system of the coordinates in the temporal extent (property interval). The default reference system is the Gregorian calendar. In the Core this is the only supported temporal reference system. Extensions may support additional temporal reference systems and add additional enum values.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *trs;

    Swift

    var trs: String! { get set }
  • Initialize

    Declaration

    Objective-C

    - (instancetype)init;

    Swift

    init!()

    Return Value

    new temporal

  • Initialize

    Declaration

    Objective-C

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

    Swift

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

    Parameters

    tree

    JSON tree

    Return Value

    new temporal

  • Get the interval collection count

    Declaration

    Objective-C

    - (int)intervalCount;

    Swift

    func intervalCount() -> Int32

    Return Value

    count

  • Get the first interval

    Declaration

    Objective-C

    - (NSMutableArray<NSString *> *)firstInterval;

    Swift

    func firstInterval() -> NSMutableArray!

    Return Value

    interval

  • Get the interval at the index

    Declaration

    Objective-C

    - (NSMutableArray<NSString *> *)intervalAtIndex:(int)index;

    Swift

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

    Parameters

    index

    0 based index

    Return Value

    interval

  • Add an interval

    Declaration

    Objective-C

    - (void)addInterval:(NSMutableArray<NSString *> *)interval;

    Swift

    func addInterval(_ interval: NSMutableArray!)

    Parameters

    interval

    single interval