marcusmohr / simplewcs2

QGIS Plugin for OGC Web Coverage Service 2.X
GNU General Public License v3.0
1 stars 7 forks source link

capabilities.find returns NoneType #7

Open cefect opened 3 years ago

cefect commented 3 years ago

Getting the below error when trying this url (on all wcs versions):

WARNING Traceback (most recent call last): File "C:/Users/cefect/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\simplewcs2\simplewcs.py", line 176, in getCapabilities self.wcs = WCS(capabilities) File "C:/Users/cefect/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\simplewcs2\wcs.py", line 24, in __init__ self.describeCoverageUrl = self.capabilities.find(ows + 'OperationsMetadata/' + ows + 'Operation[@name="DescribeCoverage"]/' + ows + 'DCP/' + ows + 'HTTP/' + ows + 'Get').attrib[xlink + 'href'] AttributeError: 'NoneType' object has no attribute 'attrib'

I'm guessing something is wrong with the server? but the error message doesn't help at all.

image

marcusmohr commented 3 years ago

The WCS only supports version 1.1.1 and not version 2 or higher. Maybe the error message should be clearer.