Skip to content

Commit

Permalink
Two spatial bounding boxes in a Collection don't make sense and will …
Browse files Browse the repository at this point in the history
…be reported as invalid by the schema. #1243
  • Loading branch information
m-mohr committed Oct 5, 2023
1 parent b1dce7f commit 2c94dd5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
4 changes: 1 addition & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Common metadata: If a description is given, require that it is not empty
- Clarified that trailing slashes in URIs are significant. ([#1212](https://github.com/radiantearth/stac-spec/discussions/1212))
- All JSON Schema `$id` values no longer have `#` at the end.
- Two spatial bounding boxes in a Collection don't make sense and will be reported as invalid by the schema. ([#1243](https://github.com/radiantearth/stac-spec/issues/1243))

### Removed

Expand All @@ -25,9 +26,6 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
### Fixed

- Several typos and minor language changes

### Fixed

- Clarified that collection IDs should be unique across all collections in the corresponding root catalog.

## [v1.0.0] - 2021-05-25
Expand Down
1 change: 1 addition & 0 deletions collection-spec/collection-spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ used to provide a more precise description of the extent and identify clusters o
Clients only interested in the overall spatial extent will only need to access the first item in each array.
It is recommended to only use multiple bounding boxes if a union of them would then include
a large uncovered area (e.g. the union of Germany and Chile).
Thus, it doesn't make sense to provide two bounding boxes and the validation will fail in this case.

The length of the inner array must be 2*n where n is the number of dimensions.
The array contains all axes of the southwesterly most extent followed by all axes of the northeasterly most extent specified in
Expand Down
10 changes: 9 additions & 1 deletion collection-spec/json-schema/collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,15 @@
"bbox": {
"title": "Spatial extents",
"type": "array",
"minItems": 1,
"oneOf": [
{
"minItems": 1,
"maxItems": 1
},
{
"minItems": 3
}
],
"items": {
"title": "Spatial extent",
"type": "array",
Expand Down

0 comments on commit 2c94dd5

Please sign in to comment.