[Qgis-user] WFS server responses validity
Ivan Mincik
ivan.mincik at gmail.com
Thu Dec 17 14:23:39 PST 2015
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi all,
recently we have discovered that WFS responses produced by QGIS Mapserver are
not valid. Currently I am fighting with missing 'Keywords' element which is
crashing owslib [1], but when trying to validate response with 'xmllint',
there are few more problems:
Example:
$ wget
"http://localhost:8090/cgi-bin/qgis_mapserv.fcgi?REQUEST=GetCapabilities&SERVICE=WFS"
- -O capabilities.xml
$ xmllint --schema WFS-capabilities.xsd capabilities.xml --noout
capabilities.xml:8: element KeywordList: Schemas validity error : Element
'{http://www.opengis.net/wfs}KeywordList': This element is not expected.
Expected is one of ( {http://www.opengis.net/wfs}Keywords,
{http://www.opengis.net/wfs}OnlineResource ).
capabilities.xml:68: element GML3: Schemas validity error : Element
'{http://www.opengis.net/wfs}GML3': This element is not expected. Expected is
( {http://www.opengis.net/wfs}GML2 ).
capabilities.xml:91: element FeatureTypeList: Schemas validity error : Element
'{http://www.opengis.net/wfs}FeatureTypeList': Missing child element(s).
Expected is ( {http://www.opengis.net/wfs}FeatureType ).
capabilities.xml fails to validate
QGIS: 2.8.4
What is wrong ?
1 - https://hub.qgis.org/issues/13037
- --
Ivan Minčík
ivan.mincik at gmail.com GPG: 0x79529A1E http://imincik.github.io/0x79529A1E.key
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQEcBAEBAgAGBQJWczXmAAoJEPfdLsR5UpoeB0sH/izTYnpRKDcOSklEeEpCzObL
eFs4LE65r6nzJDflk6tCMrI2XoaWZUlH4sLNeVCZOFp0OI5X0wljWjBmqXSJyVwG
iSjP27PpdrhwXrQihaaTpELOuWVaZrZ1Yrdbn7GKRq9FetO9AM90UbM5y34lw6mk
Gojjg3CiHd7zFfA98xcNro++RO1duKUWflLNIqhd4l78rlg+jQTn/yaZn8bHffD3
GTsNALtrWkiA7Hz96D9O1fb3LnJjqlnlGw+zTtq4LVgXgQ8GrJKptLEfqYWLgns7
fjzkCH1QyEs0Hfd/MtWtETcYFolVDLq2bWfUt6yQguwkpeGVmhc0hRbBHnP67xs=
=J9F8
-----END PGP SIGNATURE-----
More information about the Qgis-user
mailing list