Skip to content

Commit 4c1a5dd

Browse files
authored
Remove stac version and extensions from item collection (#171)
* ItemCollection: remove stac_version and stac_extensions fields
1 parent 44b0a0b commit 4c1a5dd

File tree

7 files changed

+6
-27
lines changed

7 files changed

+6
-27
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1414
### Deprecated
1515

1616
### Removed
17+
- Remove stac_version and stac_extensions fields in ItemCollection
1718

1819
### Fixed
1920

core/commons.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -600,8 +600,8 @@ components:
600600
example:
601601
stac_version: 1.0.0
602602
stac_extensions:
603-
- eo
604-
- view
603+
- 'https://stac-extensions.github.io/eo/v1.0.0/schema.json'
604+
- 'https://stac-extensions.github.io/view/v1.0.0/schema.json'
605605
- 'https://example.com/cs-extension/1.0/schema.json'
606606
type: Feature
607607
id: CS3-20160503_132131_05

fragments/filter/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -627,9 +627,9 @@ A sample STAC Item (excluding `assets`) is:
627627
"type": "Feature",
628628
"stac_version": "1.0.0",
629629
"stac_extensions": [
630-
"eo",
631-
"view",
632-
"proj"
630+
"https://stac-extensions.github.io/eo/v1.0.0/schema.json",
631+
"https://stac-extensions.github.io/view/v1.0.0/schema.json",
632+
"https://stac-extensions.github.io/projection/v1.0.0/schema.json"
633633
],
634634
"id": "S2A_60HWB_20201111_0_L2A",
635635
"bbox": [ 176.9997779369264, -39.83783732066656, 178.14624317719924, -38.842842449352425],

fragments/itemcollection/README.md

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,23 +21,10 @@ This object describes a STAC ItemCollection. The fields `type` and `features` ar
2121

2222
| Field Name | Type | Description |
2323
| --------------- | --------------------------------------- | ----------- |
24-
| stac_version | string | **REQUIRED.** The STAC version the ItemCollection implements. |
25-
| stac_extensions | \[string\] | A list of extensions the ItemCollection implements. |
2624
| type | string | **REQUIRED.** Always "FeatureCollection" to provide compatibility with GeoJSON. |
2725
| features | [STAC Item](../../stac-spec/item-spec/item-spec.md) | **REQUIRED** A possibly-empty array of Item objects. |
2826
| links | [Link Object](../../stac-spec/item-spec/item-spec.md#link-object) | An array of Links related to this ItemCollection. |
2927

30-
**stac_version**: In general, STAC versions can be mixed, but please keep the [recommended best
31-
practices](../../stac-spec/best-practices.md#mixing-stac-versions) in mind.
32-
33-
**stac_extensions**: A list of STAC content extensions the ItemCollection implements. The list contains URLs to the JSON Schema files it
34-
can be validated against. For official [STAC extensions](https://stac-extensions.github.io/#list-of-stac-extensions), a "shortcut"
35-
can be used. This means you can specify the folder name of the extension, for example `single-file-stac` for the Single File
36-
STAC extension. This does *not* apply for [API extensions](../../extensions.md). If the versions of the extension and the item diverge,
37-
you can specify the URL of the JSON schema file. This list must only contain extensions that extend the ItemCollection itself, see the
38-
the 'Scope' column in the list of extensions. It must not contain extensions that extend the Item objects, these must be specified in the
39-
Item object directly.
40-
4128
## Extensions
4229

4330
- The [Context Extension](../../item-search/README.md#context) adds additional fields to STAC ItemCollection relevant

fragments/itemcollection/examples/itemcollection-sample-full.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{
2-
"stac_version": "1.0.0",
3-
"stac_extensions": [],
42
"type": "FeatureCollection",
53
"features": [
64
{
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{
2-
"stac_version": "1.0.0",
3-
"stac_extensions": [],
42
"type": "FeatureCollection",
53
"features": []
64
}

fragments/itemcollection/openapi.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,9 @@ components:
1111
A GeoJSON FeatureCollection augmented with foreign members that contain values relevant to a STAC entity
1212
type: object
1313
required:
14-
- stac_version
1514
- features
1615
- type
1716
properties:
18-
stac_version:
19-
$ref: '../../core/commons.yaml#/components/schemas/stac_version'
20-
stac_extensions:
21-
$ref: '../../core/commons.yaml#/components/schemas/stac_extensions'
2217
type:
2318
type: string
2419
enum:

0 commit comments

Comments
 (0)