Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disallow two spatial bounding boxes in Collections #1260

Merged
merged 1 commit into from
Nov 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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