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

Fix examples for code automatic testing #1080

Merged
merged 10 commits into from
Apr 15, 2021
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

### Changed

- Clarified that stac_extensions should also list extensions that are used in Collection summaries. ([#1077](https://github.com/radiantearth/stac-spec/issues/1077))
- The first extent in a Collection is always the overall extent, followed by more specific extents. ([#1064](https://github.com/radiantearth/stac-spec/issues/1064), [opengeospatial/ogcapi-features#520](https://github.com/opengeospatial/ogcapi-features/pull/520))
- Updated examples for automatic collection creation from code and validation ([#1080](https://github.com/radiantearth/stac-spec/pull/1080)
- Clarified that stac_extensions should also list extensions that are used in Collection summaries. ([#1077](https://github.com/radiantearth/stac-spec/issues/1077))

## [v1.0.0-rc.2] - 2021-03-30

Expand Down
49 changes: 32 additions & 17 deletions examples/collection.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"id": "simple-collection",
"type": "Collection",
"stac_extensions": [
"https://stac-extensions.github.io/view/v1.0.0/schema.json"
],
"stac_version": "1.0.0-rc.2",
"description": "A simple collection demonstrating core catalog fields with links to a couple of items",
"title": "Simple Example Collection",
Expand All @@ -19,45 +22,58 @@
"spatial": {
"bbox": [
[
172.911,
1.343,
172.955,
1.3691
172.91173669923782,
1.3438851951615003,
172.95469614953714,
1.3690476620161975
]
]
},
"temporal": {
"interval": [
[
"2020-12-11T09:06:43.312000Z",
"2020-12-14T18:02:31.437000Z"
"2020-12-11T22:38:32.125Z",
"2020-12-14T18:02:31.437Z"
]
]
}
},
"license": "CC-BY-4.0",
"summaries": {
"platform": [
"cool_sat2",
"cool_sat1"
"cool_sat1",
"cool_sat2"
],
"constellation": [
"ion"
],
"instruments": [
"cool_sensor_v1"
"cool_sensor_v1",
"cool_sensor_v2"
],
"gsd": {
"minimum": 0.512,
"maximum": 0.7
"maximum": 0.66
},
"view:off_nadir": {
"minimum": 0,
"maximum": 15
"eo:cloud_cover": {
"minimum": 1.2,
"maximum": 1.2
},
"proj:epsg": {
"minimum": 32659,
"maximum": 32659
},
"view:sun_elevation": {
"minimum": 6.78,
"maximum": 40
"minimum": 54.9,
"maximum": 54.9
},
"view:off_nadir": {
"minimum": 3.8,
"maximum": 3.8
},
"view:sun_azimuth": {
"minimum": 135.7,
"maximum": 135.7
}
},
"links": [
Expand All @@ -69,8 +85,7 @@
{
"rel": "item",
"href": "./simple-item.json",
"type": "application/geo+json",
"title": "Simple Item"
"type": "application/geo+json"
m-mohr marked this conversation as resolved.
Show resolved Hide resolved
},
{
"rel": "item",
Expand Down
2 changes: 1 addition & 1 deletion examples/core-item.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"end_datetime": "2020-12-11T22:38:32.327Z",
"created": "2020-12-12T01:48:13.725Z",
"updated": "2020-12-12T01:48:13.725Z",
"platform": "cool_sat2",
"platform": "cool_sat1",
"instruments": [
"cool_sensor_v1"
],
Expand Down
8 changes: 4 additions & 4 deletions examples/extended-item.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@
"properties": {
"title": "Extended Item",
"description": "A sample STAC Item that includes a variety of examples from the stable extensions",
"datetime": "2020-12-11T22:38:32.125Z",
"created": "2020-12-12T01:48:13.725Z",
"updated": "2020-12-12T01:48:13.725Z",
"datetime": "2020-12-14T18:02:31.437000Z",
"created": "2020-12-15T01:48:13.725Z",
"updated": "2020-12-15T01:48:13.725Z",
"platform": "cool_sat2",
"instruments": [
"cool_sensor_v1"
"cool_sensor_v2"
],
"gsd": 0.66,
"eo:cloud_cover": 1.2,
Expand Down