opengeospatial / ogcapi-discrete-global-grid-systems

https://ogcapi.ogc.org/dggs
Other
20 stars 8 forks source link

7-data-retrieval: moved `zone-depth` definition/response to a separate #61

Closed geofizzydrink closed 1 year ago

geofizzydrink commented 1 year ago

requirement class: 7-data-retrieval - zone-depth parameter

A suggestion to solving the default value issue with zone-depth parameter.

  1. Following the OGC API Features - Part 3 approach to the filter-lang query parameter - where the parameter is formally defined in the OpenAPI Definition schema - with a default value specified by the implementer of the API. If the parameter is omitted then the schema defined default value is assumed.
  2. Followed the example of the bbox parameter to define a parameter schema for zone-depth that caters for either:
    • A single depth value (e.g. zone-depth=5);
    • A continuous range of depth values (e.g. zone-depth=2-8); or,
    • A defined list of specific depth values (e.g. zone-depth=0,3,4,7,8).

Because in this suggested change we're defining a specific schema for the parameter (and there are now quite a number of requirements for the 'definition' and 'response' for that parameter) I've created a separate set of requirements for the zone-depth parameter and linked that to the data retrieval operation and response requirements rather than just having it all in the original requirement classes.

ldesousa commented 1 year ago

This is a brief summary of the discussion around this topic during the 125th OGC Member Meeting:

Please let me know if something needs more clarity.

geofizzydrink commented 1 year ago

This is a brief summary of the discussion around this topic during the 125th OGC Member Meeting:

  • A case can be made for the zone-depth parameter to be entirely optional, be it from the service side as well as from the client side. This in order to make the API as easy to use as possible.
  • In case zone-depth is not specified in the request, the service should default to the native resolution. The goal is for the service to provide non-manipulated or transformed data by default.
  • The service can define its own default for zone-depth in cases where large areas are served at high resolution. This seems to be already previewed.
  • In abstract, the concept of "zone" is perceived as the area or extent of interest, i.e. the segment of the Earth's surface on which the user is interested. This contrasts with the concept of "zone" as tile. It is recognised that both concepts have their use cases.
  • It would be preferable for zone-depth to be expressed with an absolute resolution, and not as a relative resolution. This should simplify things client side and render interaction more transparent. It should also make it easier server side. An obvious implication: zone-depth should then be greater or equal to the "zone" resolution. A zone-depth equal to the zone resolution returns a single (representative) value for the zone.

Please let me know if something needs more clarity.

Thanks Luis.

jerstlouis commented 1 year ago

@ldesousa @geofizzydrink

Sorry for the late feedback, but chiming in on Luis's summary of the discussion at the MM.

I did not review the state of the latest merged commit correspond to these discussion points, but I hope we can continue the discussion and review.