EURODEO / rodeo-edr-profile

This is a repository to make EDR profiles used in EURODEO visible for all use
https://rodeo-project.eu/rodeo-edr-profile
Creative Commons Attribution 4.0 International
2 stars 0 forks source link

Number of boxes in Extent → Spatial → bbox #31

Open ways opened 1 week ago

ways commented 1 week ago

There's some confusion whether bbox should consist of an array, or an array of arrays.

Single bbox:

"extent": {
        "spatial": {
          "bbox": [
            -180.0,
            -89.9,
            180.0,
            89.9
          ],
          "crs": "..."
        },

Multiple bboxes:

"extent": {
        "spatial": {
          "bbox": [
            [
              -180.0,
              -89.9,
              180.0,
              89.9
            ],
          ],
          "crs": "..."
        },

According to https://github.com/opengeospatial/ogcapi-environmental-data-retrieval/issues/331 originally option number 1 was correct, but later versions allowed option number two, with the warning that client supporting core could break.

I think it's important we choose one of these, not both.

havardf commented 1 week ago

The description in the OpenAPI specification (https://github.com/opengeospatial/ogcapi-environmental-data-retrieval/blob/master/core/standard/openapi/schemas/collections/extent.yaml) says this about the bbox:

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.

I struggle to understand why this is allowed, and why not just make the union of multiple areas into one bigger bbox in the first place.

However, if the profile say array of numbers instead of array of array of numbers, then we could cause problems for client libraries. So it seems to me that the best we can do is to say its an array of array with min and max values equal to 1?