Datalinker-Org / Geospatial

Apache License 2.0
19 stars 10 forks source link

Allow observations to apply to one or more features #51

Closed cookeac closed 1 year ago

cookeac commented 1 year ago

Currently an ObservationType has a feature property. This feature is required. This means that if you want to make the same observation for many of features (for instance, I put 50kg/ha fertiliser on 20 paddocks) then you must have many observations.

The concepts on which this type were based (ISO 19156 and AgGateway Work Records) both allow multiple features to be linked. An alternative approach could be:

  1. Make feature no longer a required field (this is not a breaking change)
  2. Add a features (plural) array of feature references to support linking an observation to multiple features.
  3. Consider using "oneOf" to allow "feature" or "features" to be specified (this may not be supported by all code generators so may be a breaking change).

@phillipsp73 @AndyDe-Aldent FYI