[Qgis-user] Trouble parsing the getcapability response.

Andrea Peri aperi2007 at gmail.com
Wed Dec 10 11:11:20 PST 2014


Richard, really thx to you.
Your sample help me to find the solution.

Just for other user I share my experience:

Starting from the ample of Richard the solution was
to pass from version=1.3.0 to version=1.1.1.

Infact:
Using the version=1.1.1 the root tag is
<WMT_MS_Capabilities version="1.1.1">

And the xpath
/WMT_MS_Capabilites/Service/Name

work perfectly.

Instead firstly I try using the version=1.3.0.
That mean a root tag like this:
<WMS_Capabilities version="1.3.0"
xsi:schemaLocation="http://www.opengis.net/wms
http://qgis.org/wms_1_3_0.xsd">

I dont knw why, but with this root tag the
xpath
/WMS_MS_Capabilites/Service/Name

dont work.

Thx again,

Andrea


2014-12-10 17:31 GMT+01:00 Richard Duivenvoorde <rdmailings at duif.net>:
> On 10-12-14 17:04, Andrea Peri wrote:
>
>> Any helo is welcome.
>
> attached, you find the working example of:
>
> http://geographika.co.uk/automated-wms-reports
>
> with capabilities from
>
> https://map.geo.gl.ch/wms/Public?service=WMS&request=getcapabilities&VERSION=1.1.1
>
> both xml and xsl attached.
> unzip in dir, open in browser and see xml go to html :-)
>
> Hope this helps.
>
> Regards,
>
> Richard Duivenvoorde



-- 
-----------------
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-----------------



More information about the Qgis-user mailing list