Skip to content

Commit

Permalink
Update to Label Extension v1.0.1 (#726)
Browse files Browse the repository at this point in the history
* Update to Label Extension v1.0.1

* Add CHANGELOG entry for #726
  • Loading branch information
duckontheweb committed Feb 22, 2022
1 parent 1a1ff77 commit ccf12d2
Show file tree
Hide file tree
Showing 73 changed files with 83 additions and 80 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

### Changed

- Label Extension version updated to `v1.0.1` ([#726](https://github.com/stac-utils/pystac/pull/726))

### Fixed

- Self links no longer included in Items for "relative published" catalogs ([#725](https://github.com/stac-utils/pystac/pull/725))
Expand Down
7 changes: 5 additions & 2 deletions pystac/extensions/label.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from pystac.extensions.hooks import ExtensionHooks
from pystac.utils import StringEnum, get_required, map_opt

SCHEMA_URI = "https://stac-extensions.github.io/label/v1.0.0/schema.json"
SCHEMA_URI = "https://stac-extensions.github.io/label/v1.0.1/schema.json"

PREFIX = "label:"

Expand Down Expand Up @@ -791,7 +791,10 @@ def label_methods(self, v: Optional[List[Union[LabelMethod, str]]]) -> None:

class LabelExtensionHooks(ExtensionHooks):
schema_uri: str = SCHEMA_URI
prev_extension_ids = {"label"}
prev_extension_ids = {
"label",
"https://stac-extensions.github.io/label/v1.0.0/schema.json",
}
stac_object_types = {pystac.STACObjectType.ITEM}

def get_object_links(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@
5.647261088925513
],
"stac_extensions": [
"https://stac-extensions.github.io/label/v1.0.0/schema.json"
"https://stac-extensions.github.io/label/v1.0.1/schema.json"
],
"collection": "acc"
}
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@
5.619166711344742
],
"stac_extensions": [
"https://stac-extensions.github.io/label/v1.0.0/schema.json"
"https://stac-extensions.github.io/label/v1.0.1/schema.json"
],
"collection": "acc"
}
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@
5.610742610987594
],
"stac_extensions": [
"https://stac-extensions.github.io/label/v1.0.0/schema.json"
"https://stac-extensions.github.io/label/v1.0.1/schema.json"
],
"collection": "acc"
}
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@
5.593203677296213
],
"stac_extensions": [
"https://stac-extensions.github.io/label/v1.0.0/schema.json"
"https://stac-extensions.github.io/label/v1.0.1/schema.json"
],
"collection": "acc"
}
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@
-6.801144663537702
],
"stac_extensions": [
"https://stac-extensions.github.io/label/v1.0.0/schema.json"
"https://stac-extensions.github.io/label/v1.0.1/schema.json"
],
"collection": "dar"
}
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@
-6.783684392169557
],
"stac_extensions": [
"https://stac-extensions.github.io/label/v1.0.0/schema.json"
"https://stac-extensions.github.io/label/v1.0.1/schema.json"
],
"collection": "dar"
}
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,7 @@
-6.800774407651622
],
"stac_extensions": [
"https://stac-extensions.github.io/label/v1.0.0/schema.json"
"https://stac-extensions.github.io/label/v1.0.1/schema.json"
],
"collection": "dar"
}
Original file line number Diff line number Diff line change
Expand Up @@ -820,7 +820,7 @@
-6.759102343973786
],
"stac_extensions": [
"https://stac-extensions.github.io/label/v1.0.0/schema.json"
"https://stac-extensions.github.io/label/v1.0.1/schema.json"
],
"collection": "dar"
}
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@
-6.786630132161881
],
"stac_extensions": [
"https://stac-extensions.github.io/label/v1.0.0/schema.json"
"https://stac-extensions.github.io/label/v1.0.1/schema.json"
],
"collection": "dar"
}
Original file line number Diff line number Diff line change
Expand Up @@ -1286,7 +1286,7 @@
-6.773980646345491
],
"stac_extensions": [
"https://stac-extensions.github.io/label/v1.0.0/schema.json"
"https://stac-extensions.github.io/label/v1.0.1/schema.json"
],
"collection": "dar"
}
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@
0.26207074609958386
],
"stac_extensions": [
"https://stac-extensions.github.io/label/v1.0.0/schema.json"
"https://stac-extensions.github.io/label/v1.0.1/schema.json"
],
"collection": "kam"
}
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@
6.333146686841442
],
"stac_extensions": [
"https://stac-extensions.github.io/label/v1.0.0/schema.json"
"https://stac-extensions.github.io/label/v1.0.1/schema.json"
],
"collection": "mon"
}
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@
6.339080445680323
],
"stac_extensions": [
"https://stac-extensions.github.io/label/v1.0.0/schema.json"
"https://stac-extensions.github.io/label/v1.0.1/schema.json"
],
"collection": "mon"
}
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@
6.334626743333399
],
"stac_extensions": [
"https://stac-extensions.github.io/label/v1.0.0/schema.json"
"https://stac-extensions.github.io/label/v1.0.1/schema.json"
],
"collection": "mon"
}
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@
6.331302091125989
],
"stac_extensions": [
"https://stac-extensions.github.io/label/v1.0.0/schema.json"
"https://stac-extensions.github.io/label/v1.0.1/schema.json"
],
"collection": "mon"
}
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
13.583969811536608
],
"stac_extensions": [
"https://stac-extensions.github.io/label/v1.0.0/schema.json"
"https://stac-extensions.github.io/label/v1.0.1/schema.json"
],
"collection": "nia"
}
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@
-4.7665107950056145
],
"stac_extensions": [
"https://stac-extensions.github.io/label/v1.0.0/schema.json"
"https://stac-extensions.github.io/label/v1.0.1/schema.json"
],
"collection": "ptn"
}
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
-4.797722543259397
],
"stac_extensions": [
"https://stac-extensions.github.io/label/v1.0.0/schema.json"
"https://stac-extensions.github.io/label/v1.0.1/schema.json"
],
"collection": "ptn"
}
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
-5.878724233277496
],
"stac_extensions": [
"https://stac-extensions.github.io/label/v1.0.0/schema.json"
"https://stac-extensions.github.io/label/v1.0.1/schema.json"
],
"collection": "znz"
}
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
-5.824424385662977
],
"stac_extensions": [
"https://stac-extensions.github.io/label/v1.0.0/schema.json"
"https://stac-extensions.github.io/label/v1.0.1/schema.json"
],
"collection": "znz"
}
Original file line number Diff line number Diff line change
Expand Up @@ -1159,7 +1159,7 @@
-5.719012276837555
],
"stac_extensions": [
"https://stac-extensions.github.io/label/v1.0.0/schema.json"
"https://stac-extensions.github.io/label/v1.0.1/schema.json"
],
"collection": "znz"
}
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
-5.824334109106769
],
"stac_extensions": [
"https://stac-extensions.github.io/label/v1.0.0/schema.json"
"https://stac-extensions.github.io/label/v1.0.1/schema.json"
],
"collection": "znz"
}
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
-5.905820682536527
],
"stac_extensions": [
"https://stac-extensions.github.io/label/v1.0.0/schema.json"
"https://stac-extensions.github.io/label/v1.0.1/schema.json"
],
"collection": "znz"
}
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
-5.933001378219889
],
"stac_extensions": [
"https://stac-extensions.github.io/label/v1.0.0/schema.json"
"https://stac-extensions.github.io/label/v1.0.1/schema.json"
],
"collection": "znz"
}
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
-5.851567529006198
],
"stac_extensions": [
"https://stac-extensions.github.io/label/v1.0.0/schema.json"
"https://stac-extensions.github.io/label/v1.0.1/schema.json"
],
"collection": "znz"
}
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@
-5.8515539621204695
],
"stac_extensions": [
"https://stac-extensions.github.io/label/v1.0.0/schema.json"
"https://stac-extensions.github.io/label/v1.0.1/schema.json"
],
"collection": "znz"
}
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
-5.905835679883141
],
"stac_extensions": [
"https://stac-extensions.github.io/label/v1.0.0/schema.json"
"https://stac-extensions.github.io/label/v1.0.1/schema.json"
],
"collection": "znz"
}
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
-5.960140574104503
],
"stac_extensions": [
"https://stac-extensions.github.io/label/v1.0.0/schema.json"
"https://stac-extensions.github.io/label/v1.0.1/schema.json"
],
"collection": "znz"
}
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
-5.932984029391401
],
"stac_extensions": [
"https://stac-extensions.github.io/label/v1.0.0/schema.json"
"https://stac-extensions.github.io/label/v1.0.1/schema.json"
],
"collection": "znz"
}
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
-5.878712001912929
],
"stac_extensions": [
"https://stac-extensions.github.io/label/v1.0.0/schema.json"
"https://stac-extensions.github.io/label/v1.0.1/schema.json"
],
"collection": "znz"
}
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
-5.9329766232129995
],
"stac_extensions": [
"https://stac-extensions.github.io/label/v1.0.0/schema.json"
"https://stac-extensions.github.io/label/v1.0.1/schema.json"
],
"collection": "znz"
}
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
3.8916575492899987
],
"stac_extensions": [
"https://stac-extensions.github.io/label/v1.0.0/schema.json"
"https://stac-extensions.github.io/label/v1.0.1/schema.json"
],
"collection": "area-1-1"
}
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
3.8916575492899987
],
"stac_extensions": [
"https://stac-extensions.github.io/label/v1.0.0/schema.json"
"https://stac-extensions.github.io/label/v1.0.1/schema.json"
],
"collection": "area-1-2"
}
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
3.8916575492899987
],
"stac_extensions": [
"https://stac-extensions.github.io/label/v1.0.0/schema.json"
"https://stac-extensions.github.io/label/v1.0.1/schema.json"
],
"collection": "area-2-1"
}
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
3.8916575492899987
],
"stac_extensions": [
"https://stac-extensions.github.io/label/v1.0.0/schema.json"
"https://stac-extensions.github.io/label/v1.0.1/schema.json"
],
"collection": "area-2-2"
}
Original file line number Diff line number Diff line change
Expand Up @@ -909,6 +909,6 @@
35.90922697349481
],
"stac_extensions": [
"https://stac-extensions.github.io/label/v1.0.0/schema.json"
"https://stac-extensions.github.io/label/v1.0.1/schema.json"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@
5.647261088925513
],
"stac_extensions": [
"https://stac-extensions.github.io/label/v1.0.0/schema.json"
"https://stac-extensions.github.io/label/v1.0.1/schema.json"
],
"collection": "acc"
}

0 comments on commit ccf12d2

Please sign in to comment.