Observation

open class Observation : CoatyObject

An Observation is the act of measuring or otherwise determining the value of a property.

Class registration.

  • Undocumented

    Declaration

    Swift

    open override class var objectType: String { get }

Attributes.

  • The time instant or period of when the Observation happens.

    Declaration

    Swift

    public var phenomenonTime: Double
  • The estimated value of an ObservedProperty from the Observation. Depends on the observationType defined in the associated Datastream.

    Declaration

    Swift

    public var result: AnyCodable
  • The time of the Observation’s result was generated.

    Declaration

    Swift

    public var resultTime: Double
  • Describes the quality of the result.

    Should of type DQ_Element: https://geo-ide.noaa.gov/wiki/index.php?title=DQ_Element However, it is considered as a string even by the test suite: https://github.com/opengeospatial/ets-sta10/search?q=resultquality

    Declaration

    Swift

    public var resultQuality: [String]?
  • The time period during which the result may be used.

    Declaration

    Swift

    public var validTime: CoatyTimeInterval?
  • Key-value pairs showing the environmental conditions during measurement.

    Declaration

    Swift

    public var parameters: [String : String]?
  • Each Observation of the Sensor observes on one-and-only-one FeatureOfInterest (optional). It should refer to the objectId of either a FeatureOfInterest or a Location object. When the FeatureOfInterest changes, a snaphot of the Sensor should be created to display the change.

    Declaration

    Swift

    public var featureOfInterest: CoatyUUID?

Initializers.

Codable methods.

  • Undocumented

    Declaration

    Swift

    required public init(from decoder: Decoder) throws
  • Undocumented

    Declaration

    Swift

    open override func encode(to encoder: Encoder) throws