Michael Schulz
2011-02-18 15:06:17 UTC
Hi,
just joined the list, hello to all.
I want to use owslib for accessing web coverage services and I can't
seem to connect to WCS 1.1.0 services, whereas everything works fine
for version 1.0.0. I get this error:
Traceback (most recent call last):
File "/home/webuser/wps/processes/gdalfetchwcsbbox.py", line 209, in <module>
testWCS('http://its.not.my.server/','wc_30s_CCCMA_A2a_2050_tmax_2',(-5,40,0,45))
File "/home/webuser/wps/processes/gdalfetchwcsbbox.py", line 91, in testWCS
wcs = WebCoverageService(url,version='1.1.0')
File "/usr/local/lib/python2.6/site-packages/OWSLib-0.3.1-py2.6.egg/owslib/wcs.py",
line 22, in WebCoverageService
return wcs110.WebCoverageService_1_1_0.__new__(wcs110.WebCoverageService_1_1_0,url,
xml)
File "/usr/local/lib/python2.6/site-packages/OWSLib-0.3.1-py2.6.egg/owslib/coverage/wcsBase.py",
line 34, in __new__
obj.__init__(url, xml)
File "/usr/local/lib/python2.6/site-packages/OWSLib-0.3.1-py2.6.egg/owslib/coverage/wcs110.py",
line 53, in __init__
self.identification=ServiceIdentification(elem)
File "/usr/local/lib/python2.6/site-packages/OWSLib-0.3.1-py2.6.egg/owslib/coverage/wcs110.py",
line 225, in __init__
self.title = elem.find('{http://www.opengis.net/ows}Title').text
AttributeError: 'NoneType' object has no attribute 'find'
But the xml response is alright and the namespaces are defined
correctly (it works with the same server in 1.0.0).
Anyone has an idea what could be wrong?
Thanks, Michael
just joined the list, hello to all.
I want to use owslib for accessing web coverage services and I can't
seem to connect to WCS 1.1.0 services, whereas everything works fine
for version 1.0.0. I get this error:
Traceback (most recent call last):
File "/home/webuser/wps/processes/gdalfetchwcsbbox.py", line 209, in <module>
testWCS('http://its.not.my.server/','wc_30s_CCCMA_A2a_2050_tmax_2',(-5,40,0,45))
File "/home/webuser/wps/processes/gdalfetchwcsbbox.py", line 91, in testWCS
wcs = WebCoverageService(url,version='1.1.0')
File "/usr/local/lib/python2.6/site-packages/OWSLib-0.3.1-py2.6.egg/owslib/wcs.py",
line 22, in WebCoverageService
return wcs110.WebCoverageService_1_1_0.__new__(wcs110.WebCoverageService_1_1_0,url,
xml)
File "/usr/local/lib/python2.6/site-packages/OWSLib-0.3.1-py2.6.egg/owslib/coverage/wcsBase.py",
line 34, in __new__
obj.__init__(url, xml)
File "/usr/local/lib/python2.6/site-packages/OWSLib-0.3.1-py2.6.egg/owslib/coverage/wcs110.py",
line 53, in __init__
self.identification=ServiceIdentification(elem)
File "/usr/local/lib/python2.6/site-packages/OWSLib-0.3.1-py2.6.egg/owslib/coverage/wcs110.py",
line 225, in __init__
self.title = elem.find('{http://www.opengis.net/ows}Title').text
AttributeError: 'NoneType' object has no attribute 'find'
But the xml response is alright and the namespaces are defined
correctly (it works with the same server in 1.0.0).
Anyone has an idea what could be wrong?
Thanks, Michael
--
-----------------------------------------------------------
Michael Schulz
-----------------------------------------------------------
Michael Schulz