Skip to content

Commit

Permalink
Remove item-assets extension from v1.1.0 files
Browse files Browse the repository at this point in the history
  • Loading branch information
jsignell committed Jan 10, 2025
1 parent c243f23 commit 015f2cf
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
}
],
"stac_extensions": [
"https://stac-extensions.github.io/eo/v1.1.0/schema.json",
"https://schemas.stacspec.org/v1.0.0-beta.2/extensions/item-assets/json-schema/schema.json"
"https://stac-extensions.github.io/eo/v1.1.0/schema.json"
],
"providers": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
}
],
"stac_extensions": [
"https://stac-extensions.github.io/eo/v1.1.0/schema.json",
"https://stac-extensions.github.io/item-assets/v1.0.0/schema.json"
"https://stac-extensions.github.io/eo/v1.1.0/schema.json"
],
"providers": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
}
],
"stac_extensions": [
"https://stac-extensions.github.io/eo/v1.1.0/schema.json",
"https://stac-extensions.github.io/item-assets/v1.0.0/schema.json"
"https://stac-extensions.github.io/eo/v1.1.0/schema.json"
],
"providers": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
}
],
"stac_extensions": [
"https://stac-extensions.github.io/eo/v1.1.0/schema.json",
"https://stac-extensions.github.io/item-assets/v1.0.0/schema.json"
"https://stac-extensions.github.io/eo/v1.1.0/schema.json"
],
"providers": [
{
Expand Down
1 change: 0 additions & 1 deletion tests/data-files/item-assets/example-landsat8.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"stac_version": "1.1.0",
"stac_extensions": [
"https://stac-extensions.github.io/item-assets/v1.0.0/schema.json",
"eo"
],
"type": "Collection",
Expand Down
1 change: 0 additions & 1 deletion tests/data-files/table/collection-2.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"description": "desc",
"links": [],
"stac_extensions": [
"https://stac-extensions.github.io/item-assets/v1.0.0/schema.json",
"https://stac-extensions.github.io/table/v1.2.0/schema.json"
],
"extent": {
Expand Down
1 change: 0 additions & 1 deletion tests/data-files/table/collection.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"stac_version": "1.1.0",
"stac_extensions": [
"https://stac-extensions.github.io/item-assets/v1.0.0/schema.json",
"https://stac-extensions.github.io/table/v1.2.0/schema.json"
],
"type": "Collection",
Expand Down
1 change: 0 additions & 1 deletion tests/data-files/table/table-collection.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"stac_version": "1.1.0",
"stac_extensions": [
"https://stac-extensions.github.io/item-assets/v1.0.0/schema.json",
"https://stac-extensions.github.io/table/v1.2.0/schema.json"
],
"type": "Collection",
Expand Down
5 changes: 3 additions & 2 deletions tests/serialization/test_migrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def test_migrates_added_extension(self) -> None:
assert view_ext.sun_elevation, 58.8
assert view_ext.off_nadir, 1

def test_migrates_renamed_extension(self) -> None:
def test_migrates_removes_extension(self) -> None:
collection = pystac.Collection.from_file(
TestCases.get_path(
"data-files/examples/0.9.0/extensions/asset/"
Expand All @@ -78,7 +78,8 @@ def test_migrates_renamed_extension(self) -> None:
assert ItemAssetsExtension.get_schema_uri() not in collection.stac_extensions
assert not ItemAssetsExtension.has_extension(collection)
assert "item_assets" in collection.extra_fields
assert collection.item_assets

assert collection.stac_extensions == []
assert collection.item_assets["thumbnail"].title == "Thumbnail"

def test_migrates_pre_1_0_0_rc1_stats_summary(self) -> None:
Expand Down

0 comments on commit 015f2cf

Please sign in to comment.