Skip to content

Commit

Permalink
Update settings.json, CHANGELOG.rst, and 2 more files...
Browse files Browse the repository at this point in the history
  • Loading branch information
jokiefer committed Dec 11, 2023
1 parent 96554a9 commit 72cb94d
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
],
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll": true,
"source.organizeImports": true
"source.fixAll": "explicit",
"source.organizeImports": "explicit"
},
"[python]": {
"editor.defaultFormatter": "ms-python.autopep8"
Expand Down
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.12.2] - 2023-12-11
---------------------

Fixed
~~~~~

* None value check for floating values in bbox parser



[v0.12.1] - 2023-12-04
---------------------

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.12.1"
__version__ = "0.12.2"
VERSION = __version__ # synonym
8 changes: 5 additions & 3 deletions ows_lib/xml_mapper/iso_metadata/iso_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class EXGeographicBoundingBox(xmlmap.XmlObject):

@property
def geometry(self) -> GeosPolygon:
if self._min_x and self._max_x and self._min_y and self._max_y:
if self._min_x is not None and self._max_x is not None and self._min_y is not None and self._max_y is not None:
return GeosPolygon(((self._min_x, self._min_y),
(self._min_x, self._max_y),
(self._max_x, self._max_y),
Expand Down Expand Up @@ -368,9 +368,11 @@ def bounding_geometry(self):
if child:
polygon_list = []
for bbox in child.bbox_lat_lon_list:
polygon_list.append(bbox.geometry)
if bbox.geometry:
polygon_list.append(bbox.geometry)
for polygon in child.bounding_polygon_list:
polygon_list.extend(polygon.geometries)
if polygon.geometries:
polygon_list.extend(polygon.geometries)
return MultiPolygon(polygon_list)

@bounding_geometry.setter
Expand Down

0 comments on commit 72cb94d

Please sign in to comment.