From 9c6be4b5ece6cf774228432eed0dea36c66a6f3c Mon Sep 17 00:00:00 2001 From: Matthias Mohr Date: Thu, 15 Apr 2021 16:12:31 +0200 Subject: [PATCH 1/2] Collectionless item has collection field & link #1081 --- CHANGELOG.md | 1 + examples/catalog.json | 6 ++++++ examples/collectionless-item.json | 12 +++--------- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9a8027a1..ac468ee2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ### Fixed +- Examples - Collection Assets were specified as required (only in written text, not in JSON Schema), but that was incorrectly copied over from the former `collection-assets` extension. Collection Assets are not required. - Clarified that the values in summaries (both for ranges and sets of values) must follow the data type of the property they summarize. ([#1069](https://github.com/radiantearth/stac-spec/pull/1069)) diff --git a/examples/catalog.json b/examples/catalog.json index 1bac09f9..c309c1f6 100644 --- a/examples/catalog.json +++ b/examples/catalog.json @@ -21,6 +21,12 @@ "type": "application/json", "title": "Collection with no items (standalone)" }, + { + "rel": "item", + "href": "./collectionless-item.json", + "type": "application/json", + "title": "Collection with no items (standalone)" + }, { "rel": "self", "href": "https://raw.githubusercontent.com/radiantearth/stac-spec/v1.0.0-rc.2/examples/catalog.json", diff --git a/examples/collectionless-item.json b/examples/collectionless-item.json index 250bb704..c2384f52 100644 --- a/examples/collectionless-item.json +++ b/examples/collectionless-item.json @@ -73,20 +73,14 @@ }, "collection": "CS3", "links": [ - { - "rel": "collection", - "href": "./collection.json", - "type": "application/json", - "title": "Simple Example Collection" - }, { "rel": "root", - "href": "./collection.json", + "href": "./catalog.json", "type": "application/json" }, { - "rel": "root", - "href": "./collection.json", + "rel": "parent", + "href": "./catalog.json", "type": "application/json" }, { From 840a4cfc512f615767ee28eadb0a18b7103bdd92 Mon Sep 17 00:00:00 2001 From: Matthias Mohr Date: Thu, 15 Apr 2021 16:18:58 +0200 Subject: [PATCH 2/2] Remove collection field --- examples/collectionless-item.json | 1 - 1 file changed, 1 deletion(-) diff --git a/examples/collectionless-item.json b/examples/collectionless-item.json index c2384f52..a1b890c1 100644 --- a/examples/collectionless-item.json +++ b/examples/collectionless-item.json @@ -71,7 +71,6 @@ "cs:sat_id": "CS3", "cs:product_level": "LV1B" }, - "collection": "CS3", "links": [ { "rel": "root",