You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sdap.apache.org by rk...@apache.org on 2023/04/20 19:31:03 UTC
[incubator-sdap-nexus] branch SDAP-459 created (now 9bf9f53)
This is an automated email from the ASF dual-hosted git repository.
rkk pushed a change to branch SDAP-459
in repository https://gitbox.apache.org/repos/asf/incubator-sdap-nexus.git
at 9bf9f53 SDAP-459 - Ensure min/max lat/lon values are float
This branch includes the following new commits:
new 9bf9f53 SDAP-459 - Ensure min/max lat/lon values are float
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[incubator-sdap-nexus] 01/01: SDAP-459 - Ensure min/max lat/lon values are float
Posted by rk...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
rkk pushed a commit to branch SDAP-459
in repository https://gitbox.apache.org/repos/asf/incubator-sdap-nexus.git
commit 9bf9f53dfb507a3186c7073d92df832b98747a4a
Author: Riley Kuttruff <72...@users.noreply.github.com>
AuthorDate: Thu Apr 20 12:30:59 2023 -0700
SDAP-459 - Ensure min/max lat/lon values are float
---
data-access/nexustiles/nexustiles.py | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/data-access/nexustiles/nexustiles.py b/data-access/nexustiles/nexustiles.py
index a3aa61e..c82452b 100644
--- a/data-access/nexustiles/nexustiles.py
+++ b/data-access/nexustiles/nexustiles.py
@@ -500,7 +500,13 @@ class NexusTileService(object):
if isinstance(max_lon, list):
max_lon = max_lon[0]
- tile.bbox = BBox(min_lat, max_lat, min_lon, max_lon)
+ # In case it's been stored as a string
+ # Observed in JPL CDMS SDAP deployment
+ tile.bbox = BBox(
+ float(min_lat),
+ float(max_lat),
+ float(min_lon),
+ float(max_lon))
except KeyError:
pass