Skip to content

Commit

Permalink
Update CHANGELOG.rst, __init__.py, and iso_metadata.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jokiefer committed Sep 15, 2023
1 parent 7c5fe39 commit 7a64c7a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,17 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

[v0.5.1] - 2023-09-15
---------------------

Fixed
~~~~~

* return type `spatial_res_type` and `spatial_res_value` was switched




[v0.5.1] - 2023-09-14
---------------------

Expand Down
2 changes: 1 addition & 1 deletion ows_lib/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__version__ = "0.5.1"
__version__ = "0.5.2"
VERSION = __version__ # synonym
4 changes: 2 additions & 2 deletions ows_lib/xml_mapper/iso_metadata/iso_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ def get_spatial_res(self):
@property
def spatial_res_type(self):
res = self.get_spatial_res()
return res[0] if res else None
return res[1] if res else None

@spatial_res_type.setter
def spatial_res_type(self, value):
Expand All @@ -374,7 +374,7 @@ def spatial_res_type(self, value):
@property
def spatial_res_value(self):
res = self.get_spatial_res()
return res[1] if res else None
return res[0] if res else None

@spatial_res_value.setter
def spatial_res_value(self, value):
Expand Down

0 comments on commit 7a64c7a

Please sign in to comment.