<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body>
<div>
<div>
<div dir="ltr">
<div dir="ltr">Meanwhile this npm package also supports WFS 1.0.0 and WFS 1.1.0 </div>
<div dir="ltr">
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:12.0px Helvetica"><span style="font-family:'Helvetica';font-weight:normal;font-size:12.00px"><a href="https://github.com/GastonZalba/ol-wfs-capabilities">https://github.com/GastonZalba/ol-wfs-capabilities</a></span></p>
<br>
</div>
</div>
</div>
<div id="ms-outlook-mobile-signature">
<div><br>
</div>
Gesendet von <a href="https://aka.ms/o0ukef">Outlook für iOS</a></div>
</div>
<table class="MsoTableGrid" cellspacing="0" cellpadding="0" border="0" style="border-width: medium; border-style: none; border-color: initial; width: 660px;"><tbody><tr style="height: 79.15pt;"><td valign="middle" width="531" style="height: 79.15pt; width: 397.9pt;"><p class="MsoNormal" style="margin: 0cm 0cm 0pt 3.65pt; font-size: 10pt; line-height: normal;"><span style="font-size: 10pt; color: rgb(0, 159, 227);"><span style="font-weight: bolder; font-size: 10pt;"><span style="font-size: 10pt;"><span style="color: rgb(3, 151, 255);"><span style="font-family: Helvetica;"><span style="font-size: 11pt;">Jakob</span></span></span><span style="color: rgb(3, 151, 255); font-family: Helvetica;"><span style="font-size: 11pt;"> Miksch</span></span></span></span></span><span style="font-size: 10pt; font-family: Helvetica;"><span style="font-size: 10pt;"><span style="color: rgb(3, 151, 255);"><br style="font-size: 10pt;"></span></span></span><span style="font-size: 10pt;"><font color="#000000" style="font-size: 10pt; font-family: Helvetica;"><span style="font-weight: bolder;">Consultant</span></font><br style="font-size: 10pt; font-family: Helvetica;"><br style="font-size: 10pt; font-family: Helvetica;"><span style="font-family: Helvetica;">+49 170 9036956<br>siticom.online</span><span style="font-size: 10pt;"></span><span style="font-size: 10pt;"><span style="font-size: 10pt;"><span style="font-size: 10pt;"></span></span></span></span></p></td></tr></tbody></table><p><br></p><hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>Von:</b> QGIS-User <qgis-user-bounces@lists.osgeo.org> im Auftrag von Jakob Miksch via QGIS-User <qgis-user@lists.osgeo.org><br>
<b>Gesendet:</b> Tuesday, October 31, 2023 12:07:09 PM<br>
<b>An:</b> Aguilar Bolivar, Rosa (UT-ITC) <r.aguilar@utwente.nl>; Jorge Gustavo Rocha <jgr@geomaster.pt>; qgis-user@lists.osgeo.org <qgis-user@lists.osgeo.org><br>
<b>Betreff:</b> Re: [Qgis-user] QGIS Server: Parsing WFS capabilites with JavaScript</font>
<div> </div>
</div>
<style>
<!--
@font-face
        {font-family:Helvetica}
@font-face
        {font-family:"Cambria Math"}
@font-face
        {font-family:Calibri}
@font-face
        {font-family:"Palatino Linotype"}
@font-face
        {font-family:Consolas}
@font-face
        {font-family:Garamond}
p.x_MsoNormal, li.x_MsoNormal, div.x_MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
a:link, span.x_MsoHyperlink
        {color:#0563C1;
        text-decoration:underline}
pre
        {margin:0cm;
        font-size:10.0pt;
        font-family:"Courier New"}
span.x_HTMLVorformatiertZchn
        {font-family:Consolas}
span.x_E-MailFormatvorlage29
        {font-family:"Calibri",sans-serif;
        color:windowtext}
.x_MsoChpDefault
        {font-size:10.0pt}
@page WordSection1
        {margin:70.85pt 70.85pt 70.85pt 70.85pt}
div.x_WordSection1
        {}
-->
</style>
<div lang="EN-US" link="#0563C1" vlink="purple" style="word-wrap:break-word">
<table border="0" width="100%" cellspacing="0" cellpadding="0" align="left">
<tbody>
<tr>
<td style="background:#ffb900; padding:5pt 2pt 5pt 2pt"> </td>
<td width="100%" style="background:#fff8e5; padding:5pt 4pt 5pt 12pt; word-wrap:break-word">
<div style="color:#222222"><span style="color:#222; font-weight:bold">SECURITY WARNING:</span> This email is from an external source - be careful of attachments and links. Please report suspicious emails to soc@siticom.de
</div>
</td>
</tr>
</tbody>
</table>
<p> </p>
<div>
<div class="x_WordSection1">
<p class="x_MsoNormal">Thanks for the hints. I will try those!</p>
<p class="x_MsoNormal"> </p>
<table class="x_MsoTableGrid" cellspacing="0" cellpadding="0" border="0" style="border-width:medium; border-style:none; border-color:initial; width:660px">
<tbody>
<tr style="height:79.15pt">
<td valign="middle" width="531" style="height:79.15pt; width:397.9pt">
<p class="x_MsoNormal" style="margin:0cm 0cm 0pt 3.65pt; font-size:10pt; line-height:normal">
<span style="font-size:10pt; color:rgb(0,159,227)"><span style="font-weight:bolder; font-size:10pt"><span style="font-size:10pt"><span style="color:rgb(3,151,255)"><span style="font-family:Helvetica"><span style="font-size:11pt">Jakob</span></span></span><span style="color:rgb(3,151,255); font-family:Helvetica"><span style="font-size:11pt"> Miksch</span></span></span></span></span><span style="font-size:10pt; font-family:Helvetica"><span style="font-size:10pt"><span style="color:rgb(3,151,255)"><br style="font-size:10pt">
</span></span></span><span style="font-size:10pt"><font color="#000000" style="font-size:10pt; font-family:Helvetica"><span style="font-weight:bolder">Consultant</span></font><br style="font-size:10pt; font-family:Helvetica">
<br style="font-size:10pt; font-family:Helvetica">
<span style="font-family:Helvetica">+49 170 9036956<br>
siticom.online</span><span style="font-size:10pt"></span><span style="font-size:10pt"><span style="font-size:10pt"><span style="font-size:10pt"></span></span></span></span></p>
</td>
</tr>
</tbody>
</table>
<p><br>
</p>
<div>
<div style="border:none; border-top:solid #E1E1E1 1.0pt; padding:3.0pt 0cm 0cm 0cm">
<p class="x_MsoNormal"><b><span lang="DE" style="">From:</span></b><span lang="DE" style=""> QGIS-User <qgis-user-bounces@lists.osgeo.org>
<b>On Behalf Of </b>Aguilar Bolivar, Rosa (UT-ITC) via QGIS-User<br>
<b>Sent:</b> Tuesday, October 31, 2023 6:16 AM<br>
<b>To:</b> Jorge Gustavo Rocha <jgr@geomaster.pt>; qgis-user@lists.osgeo.org<br>
<b>Subject:</b> Re: [Qgis-user] QGIS Server: Parsing WFS capabilites with JavaScript</span></p>
</div>
</div>
<p class="x_MsoNormal"> </p>
<table class="x_MsoNormalTable" border="0" cellspacing="0" cellpadding="0" align="left" width="100%" style="width:100.0%">
<tbody>
<tr>
<td style="background:#FFB900; padding:5.0pt 2.0pt 5.0pt 2.0pt">
<p class="x_MsoNormal" style=""><span style="color:black"> </span><span style=""></span></p>
</td>
<td width="100%" style="width:100.0%; background:#FFF8E5; padding:5.0pt 4.0pt 5.0pt 12.0pt">
<div>
<p class="x_MsoNormal" style=""><b><span style="color:#222222">SECURITY WARNING:</span></b><span style="color:#222222"> This email is from an external source - be careful of attachments and links. Please report suspicious emails to
<a href="mailto:soc@siticom.de">soc@siticom.de</a> </span></p>
</div>
</td>
</tr>
</tbody>
</table>
<p><span lang="NL"> </span></p>
<div>
<p class="x_MsoNormal"><span lang="NL">Hi,</span></p>
<p class="x_MsoNormal">I have used a simple DOMParser</p>
<p class="x_MsoNormal">    const xmlParser = new DOMParser();</p>
<p class="x_MsoNormal">    const xmlText = xmlParser.parseFromString(XmlCapText, 'text/xml');</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">Cheers,</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">Rosa</p>
<div>
<p class="x_MsoNormal" align="center" style="text-align:center; background:white">
<span style="font-size:12.0pt; font-family:"Garamond",serif; color:#3333FF">----------------------------------------------------------------</span><span style="font-size:12.0pt; font-family:"Garamond",serif; color:#222222">-</span><span style="font-size:12.0pt; font-family:"Arial",sans-serif; color:#222222"></span></p>
<p class="x_MsoNormal" align="center" style="text-align:center; background:white">
<span style="font-size:8.0pt; font-family:"Palatino Linotype",serif; color:#222222">Dr. Rosa Aguilar</span></p>
<p class="x_MsoNormal" align="center" style="text-align:center"><span style="font-size:8.0pt; font-family:"Palatino Linotype",serif">University of Twente</span></p>
<p class="x_MsoNormal" align="center" style="text-align:center"><span lang="EN-GB" style="font-size:8.0pt; font-family:"Palatino Linotype",serif">Faculty of Geoinformation Science and Earth Observation</span></p>
<p class="x_MsoNormal" align="center" style="text-align:center; background:white">
<span lang="EN-GB" style="font-size:8.0pt; font-family:"Palatino Linotype",serif; color:black">Connect with me on
<a href="https://www.linkedin.com/in/rosamaguilar/?locale=en_US">LinkedIn</a></span></p>
<p class="x_MsoNormal" align="center" style="text-align:center; background:white">
<span lang="EN-GB" style="font-size:8.0pt; font-family:"Palatino Linotype",serif; color:black"><a href="https://rosaguilar.github.io/">https://rosaguilar.github.io</a></span><u><span style="font-size:8.0pt; font-family:"Palatino Linotype",serif; color:#0000EE; background:#F6F6F6"></span></u></p>
<p class="x_MsoNormal" align="center" style="text-align:center; background:white">
<span style="font-size:8.0pt; font-family:"Palatino Linotype",serif; color:#3333FF">----------------------------------------------------------------</span><span style="font-size:8.0pt; font-family:"Palatino Linotype",serif; color:#222222">-</span></p>
<p class="x_MsoNormal" align="center" style="text-align:center"><span lang="EN-GB" style="font-size:8.0pt; font-family:"Palatino Linotype",serif">The essential is invisible to the eye. Saint-Exupéry</span></p>
</div>
<p class="x_MsoNormal"><span lang="NL"> </span></p>
<div>
<div style="border:none; border-top:solid #E1E1E1 1.0pt; padding:3.0pt 0cm 0cm 0cm">
<p class="x_MsoNormal"><b><span style="">From:</span></b><span style=""> QGIS-User <<a href="mailto:qgis-user-bounces@lists.osgeo.org">qgis-user-bounces@lists.osgeo.org</a>>
<b>On Behalf Of </b>Jorge Gustavo Rocha via QGIS-User<br>
<b>Sent:</b> Monday, October 30, 2023 8:36 PM<br>
<b>To:</b> <a href="mailto:qgis-user@lists.osgeo.org">qgis-user@lists.osgeo.org</a><br>
<b>Subject:</b> Re: [Qgis-user] QGIS Server: Parsing WFS capabilites with JavaScript</span></p>
</div>
</div>
<p class="x_MsoNormal"><span lang="NL"> </span></p>
<p><span lang="NL">Hi Jakob,</span></p>
<p><span lang="NL">You can try jsonix. I use something like:</span></p>
<p><span lang="NL">var Jsonix = require('jsonix').Jsonix;<br>
var XLink_1_0 = require('w3c-schemas').XLink_1_0;<br>
var OWS_1_0_0 = require('ogc-schemas').OWS_1_0_0;<br>
var OWS_1_1_0 = require('ogc-schemas').OWS_1_1_0;<br>
var WFS_1_0_0 = require('ogc-schemas').WFS_1_0_0;<br>
var WFS_1_1_0 = require('ogc-schemas').WFS_1_1_0;<br>
var WFS_2_0 = require('ogc-schemas').WFS_2_0;<br>
var Filter_1_0_0 = require('ogc-schemas').Filter_1_0_0;<br>
var Filter_1_1_0 = require('ogc-schemas').Filter_1_1_0;<br>
var Filter_2_0 = require('ogc-schemas').Filter_2_0;<br>
var GML_1_0_0 = require('ogc-schemas').GML_1_0_0;<br>
var GML_2_1_2 = require('ogc-schemas').GML_2_1_2;<br>
var GML_3_1_1 = require('ogc-schemas').GML_3_1_1;<br>
var GML_3_2_0 = require('ogc-schemas').GML_3_2_0;<br>
var GML_3_2_1 = require('ogc-schemas').GML_3_2_1;<br>
var SMIL_2_0 = require('ogc-schemas').SMIL_2_0;<br>
var SMIL_2_0_Language = require('ogc-schemas').SMIL_2_0_Language;<br>
var CSW_2_0_2 = require('ogc-schemas').CSW_2_0_2;<br>
var DC_1_1 = require('ogc-schemas').DC_1_1;<br>
var DCT = require('ogc-schemas').DCT;<br>
var XMLSchema = require('./mappings/XMLSchema').XMLSchema;<br>
<br>
var context = new Jsonix.Context([<br>
  XLink_1_0,<br>
  OWS_1_0_0,<br>
  OWS_1_1_0,<br>
  WFS_1_0_0,<br>
  WFS_1_1_0,<br>
  WFS_2_0,<br>
  Filter_1_0_0,<br>
  Filter_1_1_0,<br>
  Filter_2_0,<br>
  GML_1_0_0,<br>
  GML_2_1_2,<br>
  GML_3_1_1,<br>
  GML_3_2_0,<br>
  GML_3_2_1,<br>
  SMIL_2_0,<br>
  SMIL_2_0_Language,<br>
  CSW_2_0_2,<br>
  DC_1_1,<br>
  DCT,<br>
  XMLSchema<br>
]);<br>
var unmarshaller = context.createUnmarshaller();</span></p>
<p><span lang="NL">Later, you can transform WFS response to JSON, like:</span></p>
<p><span lang="NL">    const response = responseBuffer.toString('utf8');<br>
    var result = unmarshaller.unmarshalString(response);</span></p>
<p><span lang="NL">Not so easy, but it works.</span></p>
<p><span lang="NL">Regards,</span></p>
<p><span lang="NL">Jorge Gustavo</span></p>
<div>
<p class="x_MsoNormal"><span lang="NL">On 30/10/23 14:11, Jakob Miksch via QGIS-User wrote:</span></p>
</div>
<blockquote style="margin-top:5.0pt; margin-bottom:5.0pt">
<p class="x_MsoNormal"><span lang="DE">Dear QGIS Server people,</span><span lang="NL"></span></p>
<p class="x_MsoNormal"><span lang="DE"> </span><span lang="NL"></span></p>
<p class="x_MsoNormal"><span lang="NL">I have a QGIS Server running. I would like to access the WFS Capabilities with JavaScript, more specifically I would like to know which WFS layers are published by QGIS Server. Unfortunately, QGIS Server only supports
 WFS 1.0.0 and 1.1.0. But the only parser for WFS capabilities I have found only support WFS 2.0.0 (
<a href="https://github.com/GastonZalba/ol-wfs-capabilities">https://github.com/GastonZalba/ol-wfs-capabilities</a> ).  </span></p>
<p class="x_MsoNormal"><span lang="NL"> </span></p>
<p class="x_MsoNormal"><span lang="NL">Does anyone have a hint how to parse the WFS Capabilities from QGIS Server with JavaScript?<br>
<br>
best regards,<br>
Jakob</span></p>
<p class="x_MsoNormal"><span lang="NL"> </span></p>
<table class="x_MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="660" style="width:495.0pt; border-color:initial">
<tbody>
<tr style="height:79.15pt">
<td width="245" valign="bottom" style="width:183.9pt; padding:0cm 0cm 0cm 0cm; height:79.15pt">
<p class="x_MsoNormal"><a name="x__Hlk528656578"><span style="font-size:10.0pt"> <br>
 </span></a><span style=""><span style="font-size:10.0pt"><img border="0" width="198" height="91" id="x__x0030_.veaxdfz7gks" src="cid:image001.png@01DA0BF2.C55B0A00" style="width:2.0583in; height:.95in"></span></span><span style=""><span style="font-size:10.0pt"></span></span></p>
</td>
<span style=""></span>
<td width="531" style="width:397.9pt; padding:0cm 0cm 0cm 0cm; height:79.15pt">
<p class="x_MsoNormal" style="margin-left:3.65pt"><span style=""><b><span style="color:#0397FF">Jakob Miksch</span></b><span style="color:#0397FF"><br>
</span></span><span style=""><b><span style="font-size:10.0pt; color:black">Consultant</span></b></span><span style=""><b><span style="font-size:10.0pt"><br>
</span></b></span><span style=""><span style="font-size:10.0pt"><br>
+49 170 9036956<br>
<span style="color:black">siticom.online</span></span></span></p>
</td>
<span style=""></span>
</tr>
<tr style="height:36.05pt">
<td width="245" valign="bottom" style="width:183.9pt; padding:0cm 5.4pt 0cm 5.4pt; height:36.05pt">
<span style=""></span></td>
<span style=""></span>
<td style="padding:0cm 0cm 0cm 3.75pt; height:36.05pt">
<p class="x_MsoNormal"><span style=""><span style="font-size:6.0pt; font-family:"Helvetica",sans-serif">siticom GmbH • Werner-von-Siemens-Straße 2-6 • 76646 Bruchsal • Deutschland<br>
Geschäftsführer: Jürgen Hatzipantelis, Stefan Höltken<br>
Sitz der Gesellschaft: Weiterstadt • Amtsgericht Darmstadt • HRB 9276<br>
Umsatzsteuer-ID Nr.: DE 197 925 589</span></span><span style=""><span style="font-family:"Helvetica",sans-serif"></span></span></p>
</td>
<span style=""></span>
</tr>
</tbody>
</table>
<p><span style=""><span lang="NL"> </span></span></p>
<span style=""></span>
<p class="x_MsoNormal" style="margin-bottom:12.0pt"><span lang="NL" style=""> </span></p>
<pre><span lang="NL">_______________________________________________</span></pre>
<pre><span lang="NL">QGIS-User mailing list</span></pre>
<pre><span lang="NL"><a href="mailto:QGIS-User@lists.osgeo.org">QGIS-User@lists.osgeo.org</a></span></pre>
<pre><span lang="NL">List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a></span></pre>
<pre><span lang="NL">Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a></span></pre>
</blockquote>
</div>
</div>
</div>
</div>
</body>
</html>