[OWSLib-users] Problem in getting "boundingboxes"

mohammed shambakey shambakey1 at gmail.com
Sun Apr 17 06:46:55 PDT 2022


Hi

When I try to get "boundingboxs" of coverage, I receive the following error:


File /p/software/juwels/stages/2020/software/Cartopy/0.18.0-gpsmpi-2021-Python-3.8.5/lib/python3.8/site-packages/owslib/coverage/wcs201.py:370,
in ContentMetadata._getOtherBoundingBoxes(self)    368     uc =
envelope.find("{http://www.opengis.net/gml/3.2}upperCorner
<http://www.opengis.net/gml/3.2%7DupperCorner%3C/span%3E%3Cspan>
style="color:rgb(175,0,0)">")    369     uc = uc.text.split()--> 370
  bbox["bbox"] = (float(lc[0]), float(lc[1]), float(uc[0]),
float(uc[1]))    371     bboxes.append(bbox)    373 return bboxes
ValueError: could not convert string to float:
'"2021-07-01T00:00:00.000Z"'
<http://www.opengis.net/gml/3.2%7DupperCorner%3C/span%3E%3Cspan>


I can't change the time axis to float because it is needed in this specific
format.

I don't know how to solve it?


Regards

-- 
Mohammed
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/owslib-users/attachments/20220417/145761f9/attachment.html>


More information about the OWSLib-users mailing list