Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: could not convert string to float on WCS .boundingboxes #875

Open
kannes opened this issue May 24, 2023 · 1 comment
Open

ValueError: could not convert string to float on WCS .boundingboxes #875

kannes opened this issue May 24, 2023 · 1 comment
Labels

Comments

@kannes
Copy link

kannes commented May 24, 2023

Following https://owslib.readthedocs.io/en/latest/usage.html#wcs I got an error:

from owslib.wcs import WebCoverageService

my_wcs = WebCoverageService('http://ows.rasdaman.org/rasdaman/ows', version='2.0.1')

my_wcs.contents['AvgLandTemp'].boundingboxes

results in

---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
/tmp/ipykernel_82681/141903616.py in <module>
----> 1 my_wcs.contents['AvgLandTemp'].boundingboxes

/usr/lib/python3/dist-packages/owslib/coverage/wcs201.py in _getOtherBoundingBoxes(self)
    370             uc = envelope.find("{http://www.opengis.net/gml/3.2}upperCorner")
    371             uc = uc.text.split()
--> 372             bbox["bbox"] = (float(lc[0]), float(lc[1]), float(uc[0]), float(uc[1]))
    373             bboxes.append(bbox)
    374 

ValueError: could not convert string to float: '"2000-02-01T00:00:00.000Z"'

owslib '0.25.0' from Ubuntu 22.04/jammy repositories with Python 3.10.6, same with '0.29.2' from pypi.

Copy link

github-actions bot commented Oct 6, 2024

This Issue has been inactive for 90 days. In order to manage maintenance burden, it will be automatically closed in 7 days.

@github-actions github-actions bot added the stale label Oct 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant