From 9580f047f7e70e6cb1abc5986196209a98c5e9bf Mon Sep 17 00:00:00 2001 From: Jerome St-Louis Date: Thu, 4 Jul 2024 19:54:17 -0400 Subject: [PATCH] openapi: synchronized subset parameter with Maps - Allow use of single `*` for time instant - Make support for `*` optional for non-temporal dimensions (the concept of minimum/maximum value is confusing for geographic longitude wrapping around in particular, with different conventions like 0..360 degrees and -180..180 degrees) --- standard/openapi/ogcapi-coverages-1.bundled.json | 2 +- standard/openapi/parameters/coverages-core/subset.yaml | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/standard/openapi/ogcapi-coverages-1.bundled.json b/standard/openapi/ogcapi-coverages-1.bundled.json index 1ea1ff2..7ccb9c2 100644 --- a/standard/openapi/ogcapi-coverages-1.bundled.json +++ b/standard/openapi/ogcapi-coverages-1.bundled.json @@ -3133,7 +3133,7 @@ "subset": { "name": "subset", "in": "query", - "description": "Retrieve only part of the data by slicing or trimming along one or more axis\nFor trimming: {axisAbbrev}({low}:{high}) (preserves dimensionality)\n An asterisk (`*`) can be used instead of {low} or {high} to indicate the minimum/maximum value.\nFor slicing: {axisAbbrev}({value}) (reduces dimensionality)\n", + "description": "Retrieve only part of the data by slicing or trimming along one or more axis\nFor trimming: {axisAbbrev}({low}:{high}) (preserves dimensionality)\nFor slicing: {axisAbbrev}({value}) (reduces dimensionality)\nAn asterisk (`*`) can be used instead of {low} or {high} to indicate the minimum/maximum value.\nFor a temporal dimension, a single asterisk can be used to indicate the high value.\nSupport for `*` is required for time, but optional for spatial and other dimensions.\n", "style": "form", "explode": false, "required": false, diff --git a/standard/openapi/parameters/coverages-core/subset.yaml b/standard/openapi/parameters/coverages-core/subset.yaml index c3dcf2a..b982194 100644 --- a/standard/openapi/parameters/coverages-core/subset.yaml +++ b/standard/openapi/parameters/coverages-core/subset.yaml @@ -3,8 +3,10 @@ in: query description: | Retrieve only part of the data by slicing or trimming along one or more axis For trimming: {axisAbbrev}({low}:{high}) (preserves dimensionality) - An asterisk (`*`) can be used instead of {low} or {high} to indicate the minimum/maximum value. For slicing: {axisAbbrev}({value}) (reduces dimensionality) + An asterisk (`*`) can be used instead of {low} or {high} to indicate the minimum/maximum value. + For a temporal dimension, a single asterisk can be used to indicate the high value. + Support for `*` is required for time, but optional for spatial and other dimensions. style: form explode: false required: false