Skip to content

Commit a29411d

Browse files
committed
Remove item-assets and virtual assets extensions
1 parent 9768748 commit a29411d

File tree

2 files changed

+2
-27
lines changed

2 files changed

+2
-27
lines changed

tests/data-files/render/collection.json

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
{
22
"stac_version": "1.1.0",
33
"stac_extensions": [
4-
"https://stac-extensions.github.io/item-assets/v1.0.0/schema.json",
5-
"https://stac-extensions.github.io/render/v1.0.0/schema.json",
6-
"https://stac-extensions.github.io/virtual-assets/v1.0.0/schema.json"
4+
"https://stac-extensions.github.io/render/v1.0.0/schema.json"
75
],
86
"type": "Collection",
97
"id": "senitnel2-l2a",
@@ -18,29 +16,6 @@
1816
"interval": [["2015-06-23T00:00:00Z", null]]
1917
}
2018
},
21-
"assets": {},
22-
"item_assets": {
23-
"ndvi": {
24-
"roles": ["virtual", "data", "index"],
25-
"type": "image/vnd.stac.geotiff; cloud-optimized=true",
26-
"vrt:hrefs": [
27-
{
28-
"key": "red",
29-
"href": "#/assets/red"
30-
},
31-
{
32-
"key": "nir",
33-
"href": "#/assets/nir"
34-
}
35-
],
36-
"title": "Normalized Difference Vegetation Index",
37-
"vrt:algorithm": "band_arithmetic",
38-
"vrt:algorithm_opts": {
39-
"expression": "(B05-B04)/(B05+B04)",
40-
"rescale": [[-1, 1]]
41-
}
42-
}
43-
},
4419
"renders": {
4520
"ndvi": {
4621
"title": "Normalized Difference Vegetation Index",

tests/extensions/test_render.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def test_item_to_from_dict(ext_item_uri: str, ext_item: pystac.Item) -> None:
9191

9292

9393
def test_collection_to_from_dict(
94-
ext_collection_uri: str, ext_collection: pystac.Item
94+
ext_collection_uri: str, ext_collection: pystac.Collection
9595
) -> None:
9696
with open(ext_collection_uri) as f:
9797
d = json.load(f)

0 commit comments

Comments
 (0)