Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions extensions/label/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,20 @@ This document explains the fields of the STAC Label Extension to a STAC Item. It
## Examples

**Roads:**
- [Example Roads Item](examples/sprint4_roads/sprint_4_example_roads_item.json)
- [Example Roads Asset (labels)](examples/sprint4_roads/spacenetroads_AOI_3_Paris_img101.json)
- [Example Roads Source Imagery Item](examples/sprint4_roads/example-source.json)
- [Example Roads Item](examples/spacenet-roads/roads_item.json)
- [Example Roads Asset (labels)](examples/spacenet-roads/spacenetroads_AOI_3_Paris_img101.geojson)
- [Example Roads Source Imagery Item](examples/spacenet-roads/roads_source.json)
- [Example Roads Collection](examples/spacenet-roads/roads_collection.json)

**Buildings:**
- [Example Catalog & Collections of Building Footprint Label Items](examples/sprint4_misc_samples/catalog.json)

- [Example Collection of Two Building Footprint Label Catalogs](examples/multidataset/catalog.json)
- [Example SpaceNet Buildings Catalog](examples/multidataset/spacenet-buildings/catalog.json)
- [Example SpaceNet Buildings (Vegas) Item](examples/multidataset/spacenet-buildings/AOI_2_Vegas_img2636.json)
- [Example SpaceNet Buildings (Paris) Item](examples/multidataset/spacenet-buildings/AOI_3_Paris_img1648.json)
- [Example SpaceNet Buildings (Shanghai) Item](examples/multidataset/spacenet-buildings/AOI_4_Shanghai_img3344.json)
- [Example World Bank Zanzibar Buildings Catalog](examples/multidataset/zanzibar/catalog.json)
- [Example World Bank Zanzibar Building Item 1](examples/multidataset/zanzibar/znz001.json)
- [Example World Bank Zanzibar Building Item 2](examples/multidataset/zanzibar/znz029.json)
## Schema
- [JSON Schema](schema.json)

Expand All @@ -45,7 +52,6 @@ Some additional notes are given here for some of the core STAC Item fields and w
| label:type | string | Type | **REQUIRED** An ENUM of either `vector` label type or `raster` label type |
| label:task | [string] | Task | Recommended to be a subset of 'regression', 'classification', 'detection', or 'segmentation', but may be an arbitrary value |
| label:method | [string] | Method | Recommended to be a subset of 'automated' or 'manual', but may be an arbitrary value. |
| label:version | number | Version | Monotonically-increasing version number. |
| label:overview | Label Overview Object| Overview | An Object storing counts (for classification-type data) or summary statistics (for continuous numerical/regression data). |

#### Class Object
Expand Down
25 changes: 25 additions & 0 deletions extensions/label/examples/multidataset/catalog.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"id": "label_extension_demo",
"title": "label extension demo",
"description": "Sample ML training data labels in the STAC format",
"stac_version": "0.7",
"links":
[
{
"rel": "self",
"href": "catalog.json"
},
{
"rel": "root",
"href": "./catalog.json"
},
{
"rel": "child",
"href": "zanzibar/catalog.json"
},
{
"rel": "child",
"href": "spacenet-buildings/catalog.json"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -1108,7 +1108,7 @@
"label:task": "segmentation",
"label:type": "vector",
"label:method": "manual",
"label:version": 1,
"version": 1,
"label:classes": [
{
"name": "OBJECTID_1",
Expand All @@ -1130,7 +1130,7 @@
"links": [
{
"rel": "self",
"href": "https://my.cat/spacenet-buildings-collection/AOI_2_Vegas_img2636.json"
"href": "AOI_2_Vegas_img2636.json"
},
{
"rel": "root",
Expand All @@ -1151,4 +1151,4 @@
"label:assets": "OBJECTID_1"
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1512,7 +1512,7 @@
"label:task": "segmentation",
"label:type": "vector",
"label:method": "manual",
"label:version": 1,
"version": 1,
"label:classes": [
{
"name": "OBJECTID_1",
Expand All @@ -1534,7 +1534,7 @@
"links": [
{
"rel": "self",
"href": "https://my.cat/spacenet-buildings-collection/AOI_3_Paris_img1648.json"
"href": "AOI_3_Paris_img1648.json"
},
{
"rel": "root",
Expand All @@ -1555,4 +1555,4 @@
"label:assets": "OBJECTID_1"
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@
"label:task": "segmentation",
"label:type": "vector",
"label:method": "manual",
"label:version": 1,
"version": 1,
"label:classes": [
{
"name": "OBJECTID_1",
Expand All @@ -714,7 +714,7 @@
"links": [
{
"rel": "self",
"href": "https://my.cat/spacenet-buildings-collection/AOI_4_Shanghai_img3344.json"
"href": "AOI_4_Shanghai_img3344.json"
},
{
"rel": "root",
Expand All @@ -735,4 +735,4 @@
"label:assets": "OBJECTID_1"
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"links": [
{
"rel": "self",
"href": "https://my.cat/spacenet-buildings-collection/catalog.json"
"href": "catalog.json"
},
{
"rel": "root",
Expand All @@ -58,4 +58,4 @@
"href": "AOI_4_Shanghai_img3344.json"
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"links": [
{
"rel": "self",
"href": "https://my.cat/zanzibar-collection/catalog.json"
"href": "catalog.json"
},
{
"rel": "root",
Expand All @@ -79,4 +79,4 @@
"href": "znz029.json"
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -167661,7 +167661,7 @@
"label:task": "segmentation",
"label:type": "vector",
"label:method": "manual",
"label:version": 1,
"version": 1,
"label:classes": [
{
"name": "building",
Expand Down Expand Up @@ -167691,7 +167691,7 @@
"links": [
{
"rel": "self",
"href": "https://my.cat/zanzibar-collection/znz001.json"
"href": "znz001.json"
},
{
"rel": "root",
Expand All @@ -167712,4 +167712,4 @@
"label:assets": "building"
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -48921,7 +48921,7 @@
"label:task": "segmentation",
"label:type": "vector",
"label:method": "manual",
"label:version": 1,
"version": 1,
"label:classes": [
{
"name": "building",
Expand Down Expand Up @@ -48951,7 +48951,7 @@
"links": [
{
"rel": "self",
"href": "https://my.cat/zanzibar-collection/znz029.json"
"href": "znz029.json"
},
{
"rel": "root",
Expand All @@ -48972,4 +48972,4 @@
"label:assets": "building"
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@
"links":
[
{
"href": "https://<endpoint>/sprint_4_example_roads_collection.json",
"href": "roads_collection.json",
"rel": "self",
"title": "sample SpaceNet roads label collection"
},
{
"href": "https://<endpoint>/sprint_4_example_roads_collection.json",
"href": "roads_collection.json",
"rel": "root",
"title": "sample SpaceNet roads label collection"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
],
"label:task": ["segmentation"],
"label:method": ["manual"],
"label:version": 1,
"version": 1,
"label:overview":
[
{
Expand Down Expand Up @@ -104,27 +104,27 @@
"links":
[
{
"href": "https://<endpoint>/sprint_4_example_roads_item.json",
"href": "roads_item.json",
"rel": "self",
"title": "sample SpaceNet roads label item"
},
{
"href": "https://<endpoint>/sprint_4_example_roads_collection.json",
"href": "roads_collection.json",
"rel": "root",
"title": "sample SpaceNet roads label collection"
},
{
"href": "https://<endpoint>/sprint_4_example_roads_collection.json",
"href": "roads_collection.json",
"rel": "parent",
"title": "sample SpaceNet roads label collection"
},
{
"href": "https://<endpoint>/sprint_4_example_roads_collection.json",
"href": "roads_collection.json",
"rel": "collection",
"title": "sample SpaceNet roads label collection"
},
{
"href": "https://<endpoint_for_raster_imagery>/AOI_3_Paris_img101_item.json",
"href": "roads_source.json",
"rel": "source",
"title": "The source imagery these road labels were derived from",
"label:assets": "road_labels"
Expand All @@ -134,7 +134,7 @@
{
"road_labels":
{
"href": "https://spacenet-dataset.s3.amazonaws.com/SpaceNet_Roads_Competition/Train/AOI_3_Paris_Roads_Train/geojson/spacenetroads/spacenetroads_AOI_3_Paris_img101.geojson",
"href": "spacenetroads_AOI_3_Paris_img101.geojson",
"title": "AOI_3_Paris_img101_roads",
"type": "application/geo+json"
}
Expand Down

This file was deleted.

4 changes: 0 additions & 4 deletions extensions/label/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,6 @@
]
}
},
"label:version": {
"title": "Version",
"type": "number"
},
"label:overview": {
"title": "Overview",
"type": "object",
Expand Down