> -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of > Michael Schulz > Sent: Friday, 18 February 2011 10:06 > To: [email protected] > Subject: [Community] owslib wcs 1.1.0 connection > > 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_tma x_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.WebCoverageServ ice_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?
Is the WCS server you are connecting to available to test? I'm guessing that the WCS you are hitting uses the WCS-namespace'd elements for ServiceIdentification. This looks to have been fixed in svn trunk. ..Tom _______________________________________________ Community mailing list [email protected] http://lists.gispython.org/mailman/listinfo/community
