From 07a14e841899c25037a01c72f3932db28744e813 Mon Sep 17 00:00:00 2001 From: Matthias Mohr Date: Wed, 3 Feb 2021 18:46:37 +0100 Subject: [PATCH] The Stats Object for Collection `summaries` changed `min` to `minimum` and `max` to `maximum` to align with JSON Schema. --- CHANGELOG.md | 1 + collection-spec/collection-spec.md | 4 ++-- collection-spec/examples/sentinel2.json | 12 ++++++------ collection-spec/json-schema/collection.json | 8 ++++---- extensions/datacube/examples/example-collection.json | 4 ++-- .../processing/examples/sentinel2-collection.json | 4 ++-- 6 files changed, 17 insertions(+), 16 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7298b66d7..ca9b06d75 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - Clarified the role of geometries on items in the label extension - Data Cube Extension: Units for STAC dimensions in should now be compliant to UDUNITS-2 units (singular) whenever available. - Relaxed the regular expression for DOIs in the scientific extension ([#910](https://github.com/radiantearth/stac-spec/issues/910)) +- The [Stats Object](collection-spec/collection-spec.md#stats-object) for Collection `summaries` changed `min` to `minimum` and `max` to `maximum` to align with JSON Schema. ### Removed diff --git a/collection-spec/collection-spec.md b/collection-spec/collection-spec.md index 533dc265b..462409e96 100644 --- a/collection-spec/collection-spec.md +++ b/collection-spec/collection-spec.md @@ -152,8 +152,8 @@ Implementors are free to add other derived statistical values to the object, for | Field Name | Type | Description | | ---------- | -------------- | ----------- | -| min | number\|string | **REQUIRED.** Minimum value. | -| max | number\|string | **REQUIRED.** Maximum value. | +| minimum | number\|string | **REQUIRED.** Minimum value. | +| maximum | number\|string | **REQUIRED.** Maximum value. | ## Standalone Collections diff --git a/collection-spec/examples/sentinel2.json b/collection-spec/examples/sentinel2.json index 9f314f883..39c7a39ef 100644 --- a/collection-spec/examples/sentinel2.json +++ b/collection-spec/examples/sentinel2.json @@ -45,8 +45,8 @@ }, "summaries": { "datetime": { - "min": "2015-06-23T00:00:00Z", - "max": "2019-07-10T13:44:56Z" + "minimum": "2015-06-23T00:00:00Z", + "maximum": "2019-07-10T13:44:56Z" }, "platform": [ "sentinel-2a", @@ -59,12 +59,12 @@ "msi" ], "view:off_nadir": { - "min": 0, - "max": 100 + "minimum": 0, + "maximum": 100 }, "view:sun_elevation": { - "min": 6.78, - "max": 89.9 + "minimum": 6.78, + "maximum": 89.9 }, "sci:citation": [ "Copernicus Sentinel data [Year]" diff --git a/collection-spec/json-schema/collection.json b/collection-spec/json-schema/collection.json index e6d1fcb08..bde05b858 100644 --- a/collection-spec/json-schema/collection.json +++ b/collection-spec/json-schema/collection.json @@ -164,15 +164,15 @@ "title": "Stats", "type": "object", "required": [ - "min", - "max" + "minimum", + "maximum" ], "properties": { - "min": { + "minimum": { "title": "Minimum value", "type": ["number", "string"] }, - "max": { + "maximum": { "title": "Maximum value", "type": ["number", "string"] } diff --git a/extensions/datacube/examples/example-collection.json b/extensions/datacube/examples/example-collection.json index 02574b64a..d90d49a3e 100644 --- a/extensions/datacube/examples/example-collection.json +++ b/extensions/datacube/examples/example-collection.json @@ -78,8 +78,8 @@ }, "summaries": { "datetime": { - "min": "2015-06-23T00:00:00Z", - "max": "2019-07-10T13:44:56Z" + "minimum": "2015-06-23T00:00:00Z", + "maximum": "2019-07-10T13:44:56Z" }, "gsd": [ 10, diff --git a/extensions/processing/examples/sentinel2-collection.json b/extensions/processing/examples/sentinel2-collection.json index 536a87b80..5d044cad9 100644 --- a/extensions/processing/examples/sentinel2-collection.json +++ b/extensions/processing/examples/sentinel2-collection.json @@ -64,8 +64,8 @@ }, "summaries": { "datetime": { - "min": "2015-06-23T00:00:00Z", - "max": "2019-07-10T13:44:56Z" + "minimum": "2015-06-23T00:00:00Z", + "maximum": "2019-07-10T13:44:56Z" }, "platform": [ "sentinel-2a",