Skip to content

Commit bb15ca6

Browse files
authored
Merge pull request #1080 from radiantearth/fix_examples
Fix examples for code automatic testing
2 parents 1f9c4b0 + 16e80e9 commit bb15ca6

File tree

4 files changed

+38
-21
lines changed

4 files changed

+38
-21
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
99

1010
### Changed
1111

12-
- Clarified that stac_extensions should also list extensions that are used in Collection summaries. ([#1077](https://github.com/radiantearth/stac-spec/issues/1077))
1312
- 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))
13+
- Updated examples for automatic collection creation from code and validation ([#1080](https://github.com/radiantearth/stac-spec/pull/1080)
14+
- Clarified that stac_extensions should also list extensions that are used in Collection summaries. ([#1077](https://github.com/radiantearth/stac-spec/issues/1077))
1415

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

examples/collection.json

Lines changed: 31 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
{
22
"id": "simple-collection",
33
"type": "Collection",
4+
"stac_extensions": [
5+
"https://stac-extensions.github.io/view/v1.0.0/schema.json"
6+
],
47
"stac_version": "1.0.0-rc.2",
58
"description": "A simple collection demonstrating core catalog fields with links to a couple of items",
69
"title": "Simple Example Collection",
@@ -19,45 +22,58 @@
1922
"spatial": {
2023
"bbox": [
2124
[
22-
172.911,
23-
1.343,
24-
172.955,
25-
1.3691
25+
172.91173669923782,
26+
1.3438851951615003,
27+
172.95469614953714,
28+
1.3690476620161975
2629
]
2730
]
2831
},
2932
"temporal": {
3033
"interval": [
3134
[
32-
"2020-12-11T09:06:43.312000Z",
33-
"2020-12-14T18:02:31.437000Z"
35+
"2020-12-11T22:38:32.125Z",
36+
"2020-12-14T18:02:31.437Z"
3437
]
3538
]
3639
}
3740
},
3841
"license": "CC-BY-4.0",
3942
"summaries": {
4043
"platform": [
41-
"cool_sat2",
42-
"cool_sat1"
44+
"cool_sat1",
45+
"cool_sat2"
4346
],
4447
"constellation": [
4548
"ion"
4649
],
4750
"instruments": [
48-
"cool_sensor_v1"
51+
"cool_sensor_v1",
52+
"cool_sensor_v2"
4953
],
5054
"gsd": {
5155
"minimum": 0.512,
52-
"maximum": 0.7
56+
"maximum": 0.66
5357
},
54-
"view:off_nadir": {
55-
"minimum": 0,
56-
"maximum": 15
58+
"eo:cloud_cover": {
59+
"minimum": 1.2,
60+
"maximum": 1.2
61+
},
62+
"proj:epsg": {
63+
"minimum": 32659,
64+
"maximum": 32659
5765
},
5866
"view:sun_elevation": {
59-
"minimum": 6.78,
60-
"maximum": 40
67+
"minimum": 54.9,
68+
"maximum": 54.9
69+
},
70+
"view:off_nadir": {
71+
"minimum": 3.8,
72+
"maximum": 3.8
73+
},
74+
"view:sun_azimuth": {
75+
"minimum": 135.7,
76+
"maximum": 135.7
6177
}
6278
},
6379
"links": [

examples/core-item.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"end_datetime": "2020-12-11T22:38:32.327Z",
4545
"created": "2020-12-12T01:48:13.725Z",
4646
"updated": "2020-12-12T01:48:13.725Z",
47-
"platform": "cool_sat2",
47+
"platform": "cool_sat1",
4848
"instruments": [
4949
"cool_sensor_v1"
5050
],

examples/extended-item.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@
4545
"properties": {
4646
"title": "Extended Item",
4747
"description": "A sample STAC Item that includes a variety of examples from the stable extensions",
48-
"datetime": "2020-12-11T22:38:32.125Z",
49-
"created": "2020-12-12T01:48:13.725Z",
50-
"updated": "2020-12-12T01:48:13.725Z",
48+
"datetime": "2020-12-14T18:02:31.437000Z",
49+
"created": "2020-12-15T01:48:13.725Z",
50+
"updated": "2020-12-15T01:48:13.725Z",
5151
"platform": "cool_sat2",
5252
"instruments": [
53-
"cool_sensor_v1"
53+
"cool_sensor_v2"
5454
],
5555
"gsd": 0.66,
5656
"eo:cloud_cover": 1.2,

0 commit comments

Comments
 (0)