Skip to content

Commit

Permalink
Fixed invalid examples
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mohr committed Mar 30, 2021
1 parent 5c84af6 commit 4b2cb1b
Show file tree
Hide file tree
Showing 11 changed files with 53 additions and 30 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,28 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added

### Changed

### Deprecated

### Removed

### Fixed

- Fixed invalid examples

## [v1.0.0] - 2021-03-8

### Changed

- assets should use role `labels` instead of an asset name of `labels`
- Clarified the role of geometries on items. [#875](https://github.com/radiantearth/stac-spec/pull/875)
- `label:description` now allows CommonMark for rich-text representation ([#950](https://github.com/radiantearth/stac-spec/issues/950))

### Fixed

- Cleaned up examples

For earlier history see <https://github.com/radiantearth/stac-spec/commits/v1.0.0-rc.1/extensions/label>
Expand Down
3 changes: 2 additions & 1 deletion examples/multidataset/catalog.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"stac_version": "1.0.0-rc.1",
"type": "Catalog",
"id": "label_extension_demo",
"title": "label extension demo",
"description": "Sample ML training data labels in the STAC format",
"stac_version": "1.0.0-rc.1",
"links": [
{
"rel": "root",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"stac_version": "1.0.0-rc.1",
"stac_extensions": [
"label",
"version"
"https://stac-extensions.github.io/label/v1.0.0/schema.json",
"https://stac-extensions.github.io/version/v1.0.0/schema.json"
],
"id": "AOI_2_Vegas_img2636",
"type": "Feature",
Expand Down Expand Up @@ -39,8 +39,7 @@
"labels": {
"title": "AOI_2_Vegas_img2636_label",
"href": "https://spacenet-dataset.s3.amazonaws.com/spacenet/SN2_buildings/train/AOI_2_Vegas/geojson_buildings/SN2_buildings_train_AOI_2_Vegas_geojson_buildings_img2636.geojson",
"type": "application/geo+json",
"license": "CC-BY-SA-4.0"
"type": "application/geo+json"
},
"raster": {
"title": "AOI_2_Vegas_img2636_previewcog",
Expand All @@ -49,7 +48,8 @@
}
},
"properties": {
"datetime": "2016-08-26T22:41:55.000000Z",
"datetime": "2016-08-26T22:41:55Z",
"license": "CC-BY-SA-4.0",
"label:properties": [
"OBJECTID_1"
],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"stac_version": "1.0.0-rc.1",
"stac_extensions": [
"label",
"version"
"https://stac-extensions.github.io/label/v1.0.0/schema.json",
"https://stac-extensions.github.io/version/v1.0.0/schema.json"
],
"id": "AOI_3_Paris_img1648",
"type": "Feature",
Expand Down Expand Up @@ -39,18 +39,17 @@
"labels": {
"title": "AOI_3_Paris_img1648_label",
"href": "https://spacenet-dataset.s3.amazonaws.com/spacenet/SN2_buildings/train/AOI_3_Paris/geojson_buildings/SN2_buildings_train_AOI_3_Paris_geojson_buildings_img1648.geojson",
"type": "application/geo+json",
"license": "CC-BY-SA-4.0"
"type": "application/geo+json"
},
"raster": {
"title": "AOI_3_Paris_img1648_previewcog",
"href": "https://spacenet-dataset.s3.amazonaws.com/AOIs/AOI_3_Paris/PS-MS/AOI_3_Paris_PS-MS_COG.tif",
"type": "image/tiff; application=geotiff; profile=cloud-optimized",
"license": "CC-BY-SA-4.0"
"type": "image/tiff; application=geotiff; profile=cloud-optimized"
}
},
"properties": {
"datetime": "2016-08-26T22:41:55.000000Z",
"datetime": "2016-08-26T22:41:55Z",
"license": "CC-BY-SA-4.0",
"label:properties": [
"OBJECTID_1"
],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"stac_version": "1.0.0-rc.1",
"stac_extensions": [
"label",
"version"
"https://stac-extensions.github.io/label/v1.0.0/schema.json",
"https://stac-extensions.github.io/version/v1.0.0/schema.json"
],
"id": "AOI_4_Shanghai_img3344",
"type": "Feature",
Expand Down Expand Up @@ -39,8 +39,7 @@
"labels": {
"title": "AOI_4_Shanghai_img3344_label",
"href": "https://spacenet-dataset.s3.amazonaws.com/spacenet/SN2_buildings/train/AOI_4_Shanghai/geojson_buildings/SN2_buildings_train_AOI_4_Shanghai_geojson_buildings_img3344.geojson",
"type": "application/geo+json",
"license": "CC-BY-SA-4.0"
"type": "application/geo+json"
},
"raster": {
"title": "AOI_4_Shanghai_img3344_previewcog",
Expand All @@ -49,7 +48,8 @@
}
},
"properties": {
"datetime": "2016-08-26T22:41:55.000000Z",
"datetime": "2016-08-26T22:41:55Z",
"license": "CC-BY-SA-4.0",
"label:properties": [
"OBJECTID_1"
],
Expand Down
6 changes: 5 additions & 1 deletion examples/multidataset/spacenet-buildings/collection.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"stac_version": "1.0.0-rc.1",
"stac_extensions": [
"https://stac-extensions.github.io/version/v1.0.0/schema.json"
],
"type": "Collection",
"id": "spacenet-buildings-collection",
"title": "spacenet-buildings AoI",
"description": "Collection of training labels for spacenet-buildings",
Expand All @@ -23,7 +27,7 @@
]
}
},
"collection version": "1.0",
"version": "1.0",
"keywords": [
"demo"
],
Expand Down
6 changes: 5 additions & 1 deletion examples/multidataset/zanzibar/collection.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"stac_version": "1.0.0-rc.1",
"stac_extensions": [
"https://stac-extensions.github.io/version/v1.0.0/schema.json"
],
"type": "Collection",
"id": "zanzibar-collection",
"title": "zanzibar AoI",
"description": "Collection of training labels for zanzibar",
Expand All @@ -23,7 +27,7 @@
]
}
},
"collection version": "1.0",
"version": "1.0",
"keywords": [
"demo"
],
Expand Down
8 changes: 4 additions & 4 deletions examples/multidataset/zanzibar/znz001.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"stac_version": "1.0.0-rc.1",
"stac_extensions": [
"label",
"version"
"https://stac-extensions.github.io/label/v1.0.0/schema.json",
"https://stac-extensions.github.io/version/v1.0.0/schema.json"
],
"id": "znz001",
"type": "Feature",
Expand Down Expand Up @@ -39,8 +39,7 @@
"labels": {
"title": "znz001_label",
"href": "https://www.dropbox.com/sh/ct3s1x2a846x3yl/AAARCAOqhcRdoU7ULOb9GJl9a/grid_001.geojson?dl=1",
"type": "application/geo+json",
"license": "CC-BY-4.0"
"type": "application/geo+json"
},
"raster": {
"title": "znz001_previewcog",
Expand All @@ -55,6 +54,7 @@
},
"properties": {
"datetime": "2019-04-23T00:00:00Z",
"license": "CC-BY-4.0",
"label:properties": [
"building",
"condition"
Expand Down
8 changes: 4 additions & 4 deletions examples/multidataset/zanzibar/znz029.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"stac_version": "1.0.0-rc.1",
"stac_extensions": [
"label",
"version"
"https://stac-extensions.github.io/file/v1.0.0/schema.json",
"https://stac-extensions.github.io/version/v1.0.0/schema.json"
],
"id": "znz029",
"type": "Feature",
Expand Down Expand Up @@ -39,8 +39,7 @@
"labels": {
"title": "znz029_label",
"href": "https://www.dropbox.com/sh/ct3s1x2a846x3yl/AADHytc8fSCf3gna0wNAW3lZa/grid_029.geojson?dl=1",
"type": "application/geo+json",
"license": "CC-BY-4.0"
"type": "application/geo+json"
},
"raster": {
"title": "znz029_previewcog",
Expand All @@ -55,6 +54,7 @@
},
"properties": {
"datetime": "2019-04-23T00:00:00Z",
"license": "CC-BY-4.0",
"label:properties": [
"building",
"condition"
Expand Down
1 change: 1 addition & 0 deletions examples/spacenet-roads/roads_collection.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"stac_version": "1.0.0-rc.1",
"type": "Collection",
"id": "spacenet-roads-sample",
"description": "A sample of the SpaceNet Roads dataset built during STAC Sprint 4. The dataset contains hand-labeled roads.",
"keywords": [
Expand Down
4 changes: 2 additions & 2 deletions examples/spacenet-roads/roads_item.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"stac_version": "1.0.0-rc.1",
"stac_extensions": [
"label",
"version"
"https://stac-extensions.github.io/label/v1.0.0/schema.json",
"https://stac-extensions.github.io/version/v1.0.0/schema.json"
],
"id": "AOI_3_Paris_img101",
"type": "Feature",
Expand Down

0 comments on commit 4b2cb1b

Please sign in to comment.