<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Oi Pedro,</p>
    <p>Sim, podes usar filtros, mas acho que não consegues fazer isso
      com o QWC (sem mexer no código). Se conseguires, perfeito!<br>
    </p>
    <p>Se tiveres que escrever os filtros, cuidado com a sintaxe. Tens
      mesmo que por um espaço antes e depois do = na expressão. E
      lembra-te que o filtro só é aplicado dentro da BBOX do pedido do
      GetMap. <br>
    </p>
    <p>Experimenta e depois conta-nos como correu. <br>
    </p>
    <p>Boa sorte,</p>
    <p>Jorge Gustavo<br>
    </p>
    <div class="moz-cite-prefix">Às 23:54 de 09/02/21, Pedro Pereira
      escreveu:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAFzQen9jcL5SLwgoAH54WarFOJd1w_FNTK+KaSfNLCiAYVU+Ow@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">OLá boa noite,
        <div>A solução poderá passar por aqui:<br>
        </div>
        <div>FILTER<br>
        </div>
        <div><br>
        </div>
        <div><a
href="https://docs.qgis.org/2.18/en/docs/user_manual/working_with_ogc/server/services.html"
            moz-do-not-send="true">https://docs.qgis.org/2.18/en/docs/user_manual/working_with_ogc/server/services.html</a><br>
        </div>
        <div><br>
        </div>
        <div><a
href="http://myserver.com/cgi/qgis_mapserv.fcgi?REQUEST=GetMap&LAYERS=mylayer1,mylayer2&FILTER=mylayer1"
            moz-do-not-send="true">http://myserver.com/cgi/qgis_mapserv.fcgi?REQUEST=GetMap&LAYERS=mylayer1,mylayer2&FILTER=mylayer1</a>:"OBJECTID"
          = 3;mylayer2:'text' = 'blabla'&....  <br>
        </div>
        <div><br>
        </div>
        <div>Obrigado</div>
        <div>Pedro</div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Mon, Feb 8, 2021 at 1:12 PM
          Pedro Pereira <<a href="mailto:pedromap@gmail.com"
            moz-do-not-send="true">pedromap@gmail.com</a>> wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px
          0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
          <div dir="ltr">Olá bom dia,
            <div><br>
            </div>
            <div>Obrigado pela resposta, infelizmente era a resposta que
              esperava, mas não a que desejava.</div>
            <div>A solução proposta seria a que eu prontamente
              utilizaria, no entanto fico com uma limitação que terei de
              resolver de uma outra forma.</div>
            <div>No tema dos pontos pretendia utilizar a simbologia por
              cluster, caso as separe o cluster é feito individualmente
              e fica uma confusão....</div>
            <div><br>
            </div>
            <div>Terei de fazer uma escolha :)</div>
            <div><br>
            </div>
            <div>A ver se convenço alguém cá a largar algum € para pagar
              o desenvolvimento dessa funcionalidade :)</div>
            <div><br>
            </div>
            <div>Abraço e obrigado</div>
            <div>Pedro</div>
          </div>
          <br>
          <div class="gmail_quote">
            <div dir="ltr" class="gmail_attr">On Sun, Feb 7, 2021 at
              2:32 PM Jorge Gustavo Rocha <<a
                href="mailto:jgr@geomaster.pt" target="_blank"
                moz-do-not-send="true">jgr@geomaster.pt</a>> wrote:<br>
            </div>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px
              0.8ex;border-left:1px solid
              rgb(204,204,204);padding-left:1ex">
              <div>
                <p>Olá Pedro,</p>
                <p>Do ponto de vista do servidor WMS (QGIS Server), há
                  camadas e estilos que se podem aplicar. O WMS não sabe
                  se o estilo é categorizado ou não. No pedido, não dá
                  para passar um parâmetro que corresponda a uma
                  categoria que se quer visualizar.<br>
                </p>
                <p>Ou seja, tens que arranjar um artifício qualquer, que
                  se adapte ao QWC 2. Podes triplicar as camadas e cada
                  uma mostras apenas uma categoria. As três ficam juntas
                  no mesmo grupo. Assim podes ligar/desligar todo o
                  grupo, ou podes ligar ou desligar cada uma das três
                  "categorias". <br>
                </p>
                <p>Começa por triplicar as camadas e usar apenas uma
                  categoria em cada. Vê se o resultado te agrada. Se não
                  der, experimentamos soluções mais complicadas.</p>
                <p>Bom trabalho,</p>
                <p>Jorge Gustavo<br>
                </p>
                <div>Às 00:08 de 07/02/21, Pedro Pereira escreveu:<br>
                </div>
                <blockquote type="cite">
                  <div dir="ltr">Boa noite pessoal,
                    <div><br>
                    </div>
                    <div>Espero que se encontrem bem!!<br>
                      <div><br>
                      </div>
                      <div>No âmbito de um projeto que tenho em curso,
                        pretendo divulgar informação geográfica de 3
                        tabelas, pontos, linhas e polígonos utilizando o
                        Qgis Server e Qgis Web Client 2.</div>
                      <div><br>
                      </div>
                      <div>No entanto deparei-me com um problema, que
                        não sei se é uma impossibilidade do QGIS Server
                        ou do QWC2. E para tal pedia ajuda:</div>
                      <div><br>
                      </div>
                      <div>As 3 tabelas serão simbolizadas por categoria
                        (com base num atributo), e como é normal no QGIS
                        tenho a possibilidade de ligar e desligar cada
                        uma das categorias dentro da layer, mas no QWC2
                        apenas posso ligar/desligar a layer no seu todo.</div>
                      <div><br>
                      </div>
                      <div>Será que me escapa algum pormenor nas config.
                        do QWC2, ou será uma impossibilidade do serviço
                        WMS do QGIS Server?</div>
                      <div><br>
                      </div>
                      <div>Obrigado</div>
                      <div>Pedro Pereira</div>
                      <div>
                        <div><br>
                        </div>
                      </div>
                    </div>
                  </div>
                  <br>
                  <fieldset></fieldset>
                  <pre>_______________________________________________
QGIS-pt mailing list
<a href="mailto:QGIS-pt@lists.osgeo.org" target="_blank" moz-do-not-send="true">QGIS-pt@lists.osgeo.org</a>
<a href="https://lists.osgeo.org/mailman/listinfo/qgis-pt" target="_blank" moz-do-not-send="true">https://lists.osgeo.org/mailman/listinfo/qgis-pt</a>
</pre>
                </blockquote>
                <div>-- <br>
                  <table
                    style="width:525px;font-size:11pt;font-family:Arial,sans-serif"
                    cellspacing="0" cellpadding="0">
                    <tbody>
                      <tr>
                        <td
style="text-align:center;font-size:10pt;font-family:Arial,sans-serif;border-right:1px
                          solid
                          rgb(251,99,3);width:125px;padding-right:10px;vertical-align:top"
                          rowspan="6" width="125" valign="top"> <a
                            href="https://www.geomaster.pt"
                            target="_blank" moz-do-not-send="true"><img
                              alt="Logo" style="width: 105px; height:
                              auto; border: 0px;"
src="https://geomaster.pt/wp-content/uploads/2017/02/cropped-geomaster300x300-1.png"
                              moz-do-not-send="true" width="85"
                              border="0"></a> </td>
                        <td style="padding-left:10px">
                          <table cellspacing="0" cellpadding="0">
                            <tbody>
                              <tr>
                                <td
style="font-size:10pt;color:rgb(0,121,172);font-family:Arial,sans-serif;width:400px;padding-bottom:5px;padding-left:10px;vertical-align:top"
                                  valign="top"> <strong><span
                                      style="font-size:14pt;font-family:Arial,sans-serif;color:rgb(251,99,3)">Geomaster</span></strong><br>
                                  <strong><span
                                      style="font-size:11pt;font-family:Arial,sans-serif;color:black">Jorge
                                      Gustavo Rocha</span></strong> <span
style="font-family:Arial,sans-serif;font-size:11pt;color:rgb(0,0,0)"><span
style="padding-right:5px;padding-left:5px"> | </span>Software Engineer</span>
                                </td>
                              </tr>
                              <tr>
                                <td
style="font-size:10pt;color:rgb(68,68,68);font-family:Arial,sans-serif;padding-bottom:5px;padding-top:5px;padding-left:10px;vertical-align:top;line-height:17px"
                                  valign="top"> <span><span
                                      style="color:rgb(251,99,3)"><strong>e:</strong></span><span
style="font-size:10pt;font-family:Arial,sans-serif;color:rgb(0,0,0)"> <a
                                        href="mailto:jgr@geomaster.pt"
                                        target="_blank"
                                        moz-do-not-send="true">jgr@geomaster.pt</a></span></span>
                                  <span><span
                                      style="padding-left:5px;padding-right:5px">
                                      | </span><span
                                      style="color:rgb(251,99,3)"><strong>m:</strong></span><span
style="font-size:10pt;font-family:Arial,sans-serif;color:rgb(0,0,0)">
                                      +351 910 333 888<br>
                                    </span></span> <span><span
                                      style="color:rgb(251,99,3)"><strong>g:</strong></span><span
style="font-size:10pt;font-family:Arial,sans-serif;color:rgb(0,0,0)">
                                      41.54094,-8.40490</span></span> <span><span
style="padding-left:7px;padding-right:5px"> | </span><span
                                      style="color:rgb(251,99,3)"><strong>v:
                                      </strong></span><span
style="font-size:10pt;font-family:Arial,sans-serif;color:rgb(0,0,0);padding-left:7px">
                                      510 906 109<br>
                                    </span></span> <span> <span
                                      style="color:rgb(251,99,3)"><strong>a:
                                      </strong></span> </span> <span>
                                    <span
                                      style="font-size:10pt;font-family:Arial,sans-serif;color:rgb(0,0,0)"><span>
                                      </span>Rua António Cândido Pinto,
                                      67, 4715-400 Braga<br>
                                    </span></span> </td>
                              </tr>
                            </tbody>
                          </table>
                        </td>
                      </tr>
                    </tbody>
                  </table>
                </div>
              </div>
              _______________________________________________<br>
              QGIS-pt mailing list<br>
              <a href="mailto:QGIS-pt@lists.osgeo.org" target="_blank"
                moz-do-not-send="true">QGIS-pt@lists.osgeo.org</a><br>
              <a href="https://lists.osgeo.org/mailman/listinfo/qgis-pt"
                rel="noreferrer" target="_blank" moz-do-not-send="true">https://lists.osgeo.org/mailman/listinfo/qgis-pt</a><br>
            </blockquote>
          </div>
          <br clear="all">
          <div><br>
          </div>
          -- <br>
          <div dir="ltr">
            <div>Pedro Pereira</div>
          </div>
        </blockquote>
      </div>
      <br clear="all">
      <div><br>
      </div>
      -- <br>
      <div dir="ltr" class="gmail_signature">
        <div>Pedro Pereira</div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
QGIS-pt mailing list
<a class="moz-txt-link-abbreviated" href="mailto:QGIS-pt@lists.osgeo.org">QGIS-pt@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-pt">https://lists.osgeo.org/mailman/listinfo/qgis-pt</a>
</pre>
    </blockquote>
    <div class="moz-signature">-- <br>
      <title>Email Signature</title>
      <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
      <table style="width: 525px; font-size: 11pt; font-family: Arial,
        sans-serif;" cellspacing="0" cellpadding="0">
        <tbody>
          <tr>
            <td style="text-align:center; font-size: 10pt; font-family:
              Arial, sans-serif; border-right: 1px solid;
              border-right-color: #fb6303; width: 125px; padding-right:
              10px; vertical-align: top;" rowspan="6" width="125"
              valign="top"> <a href="https://www.geomaster.pt"
                target="_blank"><img alt="Logo" style="width:105px;
                  height:auto; border:0;"
src="https://geomaster.pt/wp-content/uploads/2017/02/cropped-geomaster300x300-1.png"
                  width="85" border="0"></a> </td>
            <td style="padding-left:10px">
              <table cellspacing="0" cellpadding="0">
                <tbody>
                  <tr>
                    <td style="font-size: 10pt; color:#0079ac;
                      font-family: Arial, sans-serif; width: 400px;
                      padding-bottom: 5px; padding-left: 10px;
                      vertical-align: top;" valign="top"> <strong><span
                          style="font-size: 14pt; font-family: Arial,
                          sans-serif; color:#fb6303;">Geomaster</span></strong><br>
                      <strong><span style="font-size: 11pt; font-family:
                          Arial, sans-serif; color:black;">Jorge Gustavo
                          Rocha</span></strong> <span
                        style="font-family: Arial, sans-serif;
                        font-size:11pt; color:#000000;"><span
                          style="padding-right: 5px; padding-left: 5px;">
                          | </span>Software Engineer</span> </td>
                  </tr>
                  <tr>
                    <td style="font-size: 10pt; color:#444444;
                      font-family: Arial, sans-serif; padding-bottom:
                      5px; padding-top: 5px; padding-left: 10px;
                      vertical-align: top; line-height:17px;"
                      valign="top"> <span><span style="color: #fb6303;"><strong>e:</strong></span><span
                          style="font-size: 10pt; font-family: Arial,
                          sans-serif; color:#000000;"> <a class="moz-txt-link-abbreviated" href="mailto:jgr@geomaster.pt">jgr@geomaster.pt</a></span></span>
                      <span><span style="padding-left:
                          5px;padding-right: 5px;"> | </span><span
                          style="color: #fb6303;"><strong>m:</strong></span><span
                          style="font-size: 10pt; font-family: Arial,
                          sans-serif; color:#000000;"> +351 910 333 888<br>
                        </span></span> <span><span style="color:
                          #fb6303;"><strong>g:</strong></span><span
                          style="font-size: 10pt; font-family: Arial,
                          sans-serif; color:#000000;"> 41.54094,-8.40490</span></span>
                      <span><span style="padding-left:
                          7px;padding-right: 5px;"> | </span><span
                          style="color: #fb6303;"><strong>v: </strong></span><span
                          style="font-size: 10pt; font-family: Arial,
                          sans-serif; color:#000000; padding-left: 7px;">
                          510 906 109<br>
                        </span></span> <span> <span style="color:
                          #fb6303;"><strong>a: </strong></span> </span>
                      <span> <span style="font-size: 10pt; font-family:
                          Arial, sans-serif; color: #000000;"><span> </span>Rua
                          António Cândido Pinto, 67, 4715-400 Braga<br>
                        </span></span> </td>
                  </tr>
                </tbody>
              </table>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
  </body>
</html>