Skip to content

Commit

Permalink
Add tests for old version of the extension
Browse files Browse the repository at this point in the history
  • Loading branch information
jsignell committed Dec 11, 2023
1 parent af05d17 commit 0a51f7a
Show file tree
Hide file tree
Showing 4 changed files with 459 additions and 4 deletions.
3 changes: 1 addition & 2 deletions pystac/extensions/projection.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,10 @@ def epsg(self) -> int | None:
"""
if self.code is not None and self.code.startswith("EPSG:"):
return int(self.code.replace("EPSG:", ""))
return self._get_property(EPSG_PROP, int)
return None

@epsg.setter
def epsg(self, v: int | None) -> None:
self._set_property(EPSG_PROP, None)
if v is None:
self.code = None
else:
Expand Down
Loading

0 comments on commit 0a51f7a

Please sign in to comment.