Skip to content

Commit 5f86cfb

Browse files
Add projection v1.2.0 to the list schema URIs in projection.py
The migration of projection to latest version systematically pops the field epsg. If extension URI is pointing to versions 1.0.0 or 1.1.0, it is also changed to point to version 2.0.0. However, if schema URI is v1.2.0 the extension schema URI is not changed. I propose to change it as well in that case so that the change is explicit for all versions < 2.0.0. That would help finding out that a change occurred.
1 parent 065a631 commit 5f86cfb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pystac/extensions/projection.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
SCHEMA_URIS: list[str] = [
3131
"https://stac-extensions.github.io/projection/v1.0.0/schema.json",
3232
"https://stac-extensions.github.io/projection/v1.1.0/schema.json",
33+
"https://stac-extensions.github.io/projection/v1.2.0/schema.json",
3334
SCHEMA_URI,
3435
]
3536
PREFIX: str = "proj:"

0 commit comments

Comments
 (0)