Skip to content

Commit

Permalink
The Stats Object for Collection summaries changed min to `minimum…
Browse files Browse the repository at this point in the history
…` and `max` to `maximum` to align with JSON Schema.
  • Loading branch information
m-mohr committed Feb 3, 2021
1 parent 75ac208 commit 07a14e8
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 16 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions collection-spec/collection-spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
12 changes: 6 additions & 6 deletions collection-spec/examples/sentinel2.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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]"
Expand Down
8 changes: 4 additions & 4 deletions collection-spec/json-schema/collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
}
Expand Down
4 changes: 2 additions & 2 deletions extensions/datacube/examples/example-collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions extensions/processing/examples/sentinel2-collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 07a14e8

Please sign in to comment.