Skip to content

Commit 5d0ad6c

Browse files
authored
Merge pull request #830 from radiantearth/dev
release 1.0.0-beta.1
2 parents 58aa675 + 16ad2c7 commit 5d0ad6c

File tree

34 files changed

+890
-995
lines changed

34 files changed

+890
-995
lines changed

CHANGELOG.md

+2-5
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,6 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
88

99
## [v1.0.0-beta.1] - 2020-05-29
1010

11-
### Changed
12-
13-
- Extensions:
14-
- [Label extension](extensions/label/README.md) types were clarified and types in README and JSON schema were brought into alignment
15-
1611
### Removed
1712
- The API portion of STAC has been split off into a [new repository: stac-api-spec](https://github.com/radiantearth/stac-api-spec) and will start being versioned and released separately than the core STAC spec.
1813
- proj4 string from proj extension
@@ -35,13 +30,15 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
3530
- [Tiled Assets extension](extensions/tiled-assets/README.md), for representing data that has been split into tiles
3631

3732
### Changed
33+
- [Label extension](extensions/label/README.md) types were clarified and types in README and JSON schema were brought into alignment
3834
- Moved item recommendations to best practices, and added a bit more in item spec about 'search'
3935
- Moved `eo:gsd` from `eo` extension to core `gsd` field in Item common metadata
4036
- `asset` extension renamed to `item-assets` and renamed `assets` field in Collections to `item_assets`
4137
- `item-assets` extension only requires any two fields to be available, not the two specific fields `title` and `type`
4238
- `datetime` allows `null` as value, but requires `start_datetime` and `end_datetime` then
4339
- Extensions `sat`, `scientific` and `view`: At least one field is required to be specified.
4440
- [Single File STAC extension](extensions/single-file-stac/README.md) changed to be a complete STAC catalog + GeoJSON FeatureCollection that contains collections and items.
41+
- Improved several JSON Schemas
4542

4643
### Fixed
4744
- Datacube extension: `cube:dimensions` was not flagged as required.

catalog-spec/json-schema/catalog.json

+1-6
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,7 @@
3737
},
3838
{
3939
"title": "Reference to a core extension",
40-
"type": "string",
41-
"enum": [
42-
"checksum",
43-
"single-file-stac",
44-
"tiled-assets"
45-
]
40+
"type": "string"
4641
}
4742
]
4843
}

collection-spec/collection-spec.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ STAC Collections are meant to be compatible with *OGC API - Features* Collection
1010

1111
* [Examples](examples/):
1212
* Sentinel 2: A basic standalone example of a [Collection](examples/sentinel2.json) without items.
13-
* Landsat 8: A [Collection](examples/landsat-collection.json) that holds shared data from an [Item](examples/landsat-item.json).
13+
* Landsat 8: A [Collection](examples/landsat-collection.json) with corresponding Item [Item](../item-spec/examples/landsat8-sample.json).
1414
* [JSON Schema](json-schema/collection.json) - please see the [validation instructions](../validation/README.md)
1515

1616
## Collection fields

collection-spec/examples/landsat-collection.json

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
{
22
"stac_version": "1.0.0-beta.1",
3-
"stac_extensions": [
4-
"view",
5-
"eo"
6-
],
3+
"stac_extensions": [],
74
"id": "landsat-8-l1",
85
"title": "Landsat 8 L1",
96
"description": "Landat 8 imagery radiometrically calibrated and orthorectified using gound points and Digital Elevation Model (DEM) data to correct relief displacement.",
@@ -63,7 +60,6 @@
6360
"summaries": {
6461
"platform": ["landsat-8"],
6562
"instruments": ["oli", "tirs"],
66-
"view:off_nadir": [0],
6763
"gsd": [30],
6864
"eo:bands": [
6965
{

collection-spec/examples/landsat-item.json

-180
This file was deleted.

collection-spec/json-schema/collection.json

+1-10
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,7 @@
3434
},
3535
{
3636
"title": "Reference to a core extension",
37-
"type": "string",
38-
"enum": [
39-
"collection-assets",
40-
"checksum",
41-
"datacube",
42-
"item-assets",
43-
"scientific",
44-
"tiled-assets",
45-
"version"
46-
]
37+
"type": "string"
4738
}
4839
]
4940
}

extensions/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ An extension can add new fields to STAC entities (content extension), or can add
4949
| [Checksum](checksum/README.md) | checksum | checksum | Item, Catalog, Collection | *Proposal* | Provides a way to specify file checksums for assets and links in Items, Catalogs and Collections. |
5050
| [Collection Assets](collection-assets/README.md) | collection-assets | - | Collection | *Proposal* | Provides a way to specify assets available on the collection-level. |
5151
| [Data Cube](datacube/README.md) | datacube | cube | Item, Collection | *Proposal* | Data Cube related metadata, especially to describe their dimensions. |
52-
| [Electro-Optical](eo/README.md) | eo | eo | Item | *Pilot* | Covers electro-optical data that represents a snapshot of the earth for a single date and time. It could consist of multiple spectral bands, for example visible bands, infrared bands, red edge bands and panchromatic bands. The extension provides common fields like bands, cloud cover, gsd and more. |
52+
| [Electro-Optical](eo/README.md) | eo | eo | Item | *Proposal* | Covers electro-optical data that represents a snapshot of the earth for a single date and time. It could consist of multiple spectral bands, for example visible bands, infrared bands, red edge bands and panchromatic bands. The extension provides common fields like bands, cloud cover, gsd and more. |
5353
| [Item Asset Definition](item-assets/README.md) | item-assets | - | Collection | *Proposal* | Provides a way to specify details about what assets may be found in Items belonging to a collection. |
5454
| [Label](label/README.md) | label | label | Item | *Proposal* | Items that relate labeled AOIs with source imagery |
5555
| [Point Cloud](pointcloud/README.md) | pointcloud | pc | Item | *Proposal* | Provides a way to describe point cloud datasets. The point clouds can come from either active or passive sensors, and data is frequently acquired using tools such as LiDAR or coincidence-matched imagery. |

extensions/checksum/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ Provides a way to specify file checksums (e.g. BLAKE2, MD5, SHA1, SHA2, SHA3) fo
1717
| ------------------ | ------ | ------------------------------------------------------------ |
1818
| checksum:multihash | string | Multihash for the corresponding file, encoded as hexadecimal (base 16) string with lowercase letters. |
1919

20+
This extension can OPTIONALLY be used with the [Collection Assets Extension](../collection-assets/README.md). Checksums MUST NOT be part of the [Item Assets Definition](../item-assets/README.md) in Collections.
21+
2022
### Examples
2123

2224
Checksum for a text file with file content `test`.

extensions/checksum/json-schema/schema.json

+63-7
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,83 @@
33
"$id": "schema.json#",
44
"title": "Checksum Extension Specification",
55
"description": "STAC Checksum Extension to a STAC Item",
6-
"allOf": [
6+
"oneOf": [
77
{
8-
"$ref": "../../../item-spec/json-schema/item.json#/definitions/core"
8+
"allOf": [
9+
{
10+
"$ref": "../../../item-spec/json-schema/item.json"
11+
},
12+
{
13+
"$ref": "#/definitions/stac_extensions"
14+
},
15+
{
16+
"$ref": "#/definitions/checksum_links"
17+
},
18+
{
19+
"$ref": "#/definitions/checksum_assets"
20+
}
21+
]
922
},
1023
{
11-
"$ref": "#/definitions/checksum"
24+
"allOf": [
25+
{
26+
"$ref": "../../../catalog-spec/json-schema/catalog.json"
27+
},
28+
{
29+
"$ref": "#/definitions/stac_extensions"
30+
},
31+
{
32+
"$ref": "#/definitions/checksum_links"
33+
}
34+
]
35+
},
36+
{
37+
"allOf": [
38+
{
39+
"$ref": "../../../collection-spec/json-schema/collection.json"
40+
},
41+
{
42+
"$ref": "#/definitions/stac_extensions"
43+
},
44+
{
45+
"$ref": "#/definitions/checksum_links"
46+
},
47+
{
48+
"$ref": "#/definitions/checksum_assets"
49+
}
50+
]
1251
}
1352
],
1453
"definitions": {
15-
"checksum": {
54+
"stac_extensions": {
55+
"type": "object",
56+
"required": [
57+
"stac_extensions"
58+
],
59+
"properties": {
60+
"stac_extensions": {
61+
"type": "array",
62+
"contains": {
63+
"const": "checksum"
64+
}
65+
}
66+
}
67+
},
68+
"checksum_links": {
1669
"type": "object",
1770
"properties": {
1871
"links": {
19-
"title": "Links",
2072
"type": "array",
2173
"items": {
2274
"$ref": "#/definitions/checksums"
2375
}
24-
},
76+
}
77+
}
78+
},
79+
"checksum_assets": {
80+
"type": "object",
81+
"properties": {
2582
"assets": {
26-
"title": "Assets",
2783
"type": "object",
2884
"patternProperties": {
2985
".+": {

extensions/collection-assets/json-schema/schema.json

+7
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,16 @@
1010
{
1111
"type": "object",
1212
"required": [
13+
"stac_extensions",
1314
"assets"
1415
],
1516
"properties": {
17+
"stac_extensions": {
18+
"type": "array",
19+
"contains": {
20+
"const": "collection-assets"
21+
}
22+
},
1623
"assets": {
1724
"$ref": "../../../item-spec/json-schema/item.json#/definitions/assets"
1825
}

0 commit comments

Comments
 (0)