Skip to content

Commit

Permalink
Merge pull request #1080 from radiantearth/fix_examples
Browse files Browse the repository at this point in the history
Fix examples for code automatic testing
  • Loading branch information
m-mohr authored Apr 15, 2021
2 parents 1f9c4b0 + 16e80e9 commit bb15ca6
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 21 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,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
46 changes: 31 additions & 15 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 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

0 comments on commit bb15ca6

Please sign in to comment.