Skip to content

Commit 7a67089

Browse files
committed
The Stats Object for Collection summaries changed min to minimum and max to maximum to align with JSON Schema.
1 parent 75ac208 commit 7a67089

File tree

5 files changed

+15
-14
lines changed

5 files changed

+15
-14
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
2121
- Clarified the role of geometries on items in the label extension
2222
- Data Cube Extension: Units for STAC dimensions in should now be compliant to UDUNITS-2 units (singular) whenever available.
2323
- Relaxed the regular expression for DOIs in the scientific extension ([#910](https://github.com/radiantearth/stac-spec/issues/910))
24+
- 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.
2425

2526
### Removed
2627

collection-spec/collection-spec.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ Implementors are free to add other derived statistical values to the object, for
152152

153153
| Field Name | Type | Description |
154154
| ---------- | -------------- | ----------- |
155-
| min | number\|string | **REQUIRED.** Minimum value. |
156-
| max | number\|string | **REQUIRED.** Maximum value. |
155+
| minimum | number\|string | **REQUIRED.** Minimum value. |
156+
| maximum | number\|string | **REQUIRED.** Maximum value. |
157157

158158
## Standalone Collections
159159

collection-spec/examples/sentinel2.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@
4545
},
4646
"summaries": {
4747
"datetime": {
48-
"min": "2015-06-23T00:00:00Z",
49-
"max": "2019-07-10T13:44:56Z"
48+
"minimum": "2015-06-23T00:00:00Z",
49+
"maximum": "2019-07-10T13:44:56Z"
5050
},
5151
"platform": [
5252
"sentinel-2a",
@@ -59,12 +59,12 @@
5959
"msi"
6060
],
6161
"view:off_nadir": {
62-
"min": 0,
63-
"max": 100
62+
"minimum": 0,
63+
"maximum": 100
6464
},
6565
"view:sun_elevation": {
66-
"min": 6.78,
67-
"max": 89.9
66+
"minimum": 6.78,
67+
"maximum": 89.9
6868
},
6969
"sci:citation": [
7070
"Copernicus Sentinel data [Year]"

collection-spec/json-schema/collection.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,15 +164,15 @@
164164
"title": "Stats",
165165
"type": "object",
166166
"required": [
167-
"min",
168-
"max"
167+
"minimum",
168+
"maximum"
169169
],
170170
"properties": {
171-
"min": {
171+
"minimum": {
172172
"title": "Minimum value",
173173
"type": ["number", "string"]
174174
},
175-
"max": {
175+
"maximum": {
176176
"title": "Maximum value",
177177
"type": ["number", "string"]
178178
}

extensions/datacube/examples/example-collection.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@
7878
},
7979
"summaries": {
8080
"datetime": {
81-
"min": "2015-06-23T00:00:00Z",
82-
"max": "2019-07-10T13:44:56Z"
81+
"minimum": "2015-06-23T00:00:00Z",
82+
"maximum": "2019-07-10T13:44:56Z"
8383
},
8484
"gsd": [
8585
10,

0 commit comments

Comments
 (0)