Comments (5)
Thanks @SaraRT. Looking deeper, MetaSearch uses OWSLib to test whether the WMS/WMTS/WFS/WCS is what it says it is, and this is where the problem happens. It appears that in this WMS's case the Capabilities XML INSPIRE definitions are giving problems to the XML parser. I also verified this using XMLSpy
from metasearch.
@tomkralidis the capabilities are valid xml isn't it? And QGIS is able to load the layers from it if I load it via the normal AddWMS route.
So is what is exactly the problem: the xml is not valid against it's own scheme? Or is it some internals of the OWSLib XML parser throwing up?
In case of the first, can we make OWSLib a litte more forgiving?
from metasearch.
Hi,
we checked our problematic WMS and we noticed that probably in our case the problem is linked to the presence of this tag: "wms_inspire_capabilities" "embed" for the use of multi language options.
from metasearch.
@rduivenvoorde: it's being thrown out by OWSLib. As well, the XML is not valid. Here is exactly what is happening in OWSLib:
>>> from owslib.wms import WebMapService
>>> w = WebMapService('http://osgis.csi.it/ws/aera/wms_aera_limiti')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "owslib\wms.py", line 78, in __init__
self._capabilities = reader.read(self.url)
File "owslib\wms.py", line 618, in read
return etree.fromstring(u.read())
File "C:\Python27\Lib\xml\etree\ElementTree.py", line 1300, in XML
parser.feed(text)
File "C:\Python27\Lib\xml\etree\ElementTree.py", line 1642, in feed
self._raiseerror(v)
File "C:\Python27\Lib\xml\etree\ElementTree.py", line 1506, in _raiseerror
raise err
xml.etree.ElementTree.ParseError: unbound prefix: line 123, column 4
Testing in XML Spy yields similar errors. The WMS XML is just problematic.
Having said this, MetaSearch does an OWSLib check to smoke test that the URL is what the metadata says it is by doing a GetCapabilities request and parsing it. It looks like the Add WMS dialogue in QGIS proper is not doing the same amount of checking.
We could lift this checking, but then all responsibility goes to the OWS provider dialogues. Thoughts?
from metasearch.
@SaraRT / @LukeGIS this is now fixed in master. Thanks for the feedback.
from metasearch.
Related Issues (20)
- include MetaSearch in QGIS core HOT 3
- Siciliy csw don't work HOT 5
- different url for post and get
- Records not loaded: Bad Request HOT 1
- httpcachingproxy option cause error HOT 3
- QGIS 2.3 Master Ubuntu 14.04 HOT 5
- newlines giving strange results in our result list HOT 2
- Qt deprecation warning HOT 1
- update documentation for QGIS 2.4 core support HOT 1
- move project to QGIS core HOT 3
- Python Error when selecting dataset in Search Tab HOT 7
- URL Error messages HOT 4
- Connection to protected services HOT 4
- Add ability to get search BBox from layer HOT 1
- Connection Error: Mismatched tag: line 57, column 3 HOT 8
- MetaSearch dutch repo working in QGIS master + 2.4, but not in QGIS 2.6 ? HOT 1
- Search error on CSW catalog - Qgis 2.6 HOT 6
- CSW Meta Search has a problem working. HOT 1
- MGRS plugin not working??? HOT 1
- Find services in the CSW and click on the link to add the service into the map using MetaSearch Catalogue Client plugin in QGIS HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from metasearch.