<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-ligatures:standardcontextual;
mso-fareast-language:EN-US;}
span.E-MailFormatvorlage17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="DE" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Hello everyone, <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US">To my knowledge it is only possible to change a QGIS server project via the QGIS desktop GUI. However, I would like to dynamically add or remove layers in a QGIS server project.
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Is there or has there been any approach to accomplish this?<br>
<br>
My spontaneous idea is to use pyQGIS to edit the QGIS server project directly without using the GUI, but maybe other approaches exist. I would be grateful for any experiences, ideas or hints.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Thanks, and best regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Jakob<o:p></o:p></span></p>
</div>
<table border="0" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-width: medium; border-style: none; border-color: initial; font-family: Helvetica; width: 660px;"><tbody><tr style="height: 79.15pt;"><td class="" valign="bottom" width="150" data-preserved-background-color="null" style="height: 79.15pt; width: 183.9pt;"><p class="MsoNormal" style="margin-bottom: 0pt; font-size: 10pt; line-height: normal;"><a id="_Hlk528656578" name="_Hlk528656578"><span style="font-size: 10.5pt;"></span></a> <br> <img src="cid:siticom-logo-blue-final-black-a-logicalis-company_bc243344-6a69-4e78-9078-76e88dbcc994.png" border="0" id="0.veaxdfz7gks" style="font-size: 1rem; width: 198px; height: 91px; aspect-ratio: 198 / 91;" width="198" height="91"><br></p><p class="MsoNormal" style="margin-bottom: 0pt; font-size: 10pt; line-height: normal;"><span style="font-size: 8pt;"></span></p><span style="font-size: 10.5pt;"></span><span style="font-size: 10pt;"><span style="font-size: 10pt;"></span><span style="font-size: 10pt;"></span></span></td><td class="" valign="middle" width="531" data-preserved-background-color="null" style="height: 79.15pt; width: 397.9pt; text-align: left;"><p class="MsoNormal" style="margin: 0cm 0cm 0pt 3.65pt; font-size: 10pt; line-height: normal;"><span style="font-size: 10pt;"><span style="font-weight: bolder; font-size: 10pt;"><span style="font-size: 10pt; color: rgb(0, 159, 227);"><span style="color: rgb(3, 151, 255);"><span style="font-size: 11pt;">Jakob Miksch</span></span></span></span></span><span style="font-size: 10pt;"><span style="font-size: 10pt;"><span style="color: rgb(3, 151, 255);"><span style="font-size: 11pt;"><br style="font-size: 11pt;"></span></span></span></span><span style="font-size: 10pt;"><span style="font-weight: bolder;"><font color="#000000" style="font-size: 10pt;">Consultant</font><br style="font-size: 10pt;"></span><br style="font-size: 10pt;"></span><span style="font-size: 13.3333px;">+49 170 9036956<br><font color="#00B0F0"><span style="font-size: 10pt; color: rgb(0, 0, 0);">siticom.online</span></font></span></p></td></tr><tr style="height: 36.05pt;"><td class="" colspan="1" valign="bottom" width="776" data-preserved-background-color="null" style="height: 36.05pt; width: 183.9pt; padding: 0cm 5.4pt;"><p class="MsoHeader" style="font-size: 8pt; text-align: justify;"><span style="font-size: 8pt;"><span style="font-size: 8pt; color: rgb(0, 176, 240);"><br><br></span></span></p></td><td class="" data-preserved-background-color="null" style="padding: 0px 0px 0px 5px; line-height: 1;"><span style="font-size: 6pt;">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></td></tr></tbody></table><p><br></p>
<p style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></p><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><span style="FONT-FAMILY: Arial"><span style="FONT-FAMILY: Arial">
<div class="WordSection1" style="FONT-FAMILY: Arial">
<span style="FONT-FAMILY: Arial; mso-bookmark: _Hlk528656578">
<p style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></p></span></div></span></span></span></body>
</html>