<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hi<br>
      <br>
      QGIS server has its own GetStyle method because implementation of
      the server started based on WMS 1.3/SLD1.1. It seems OGC GetStyles
      is only  present in WMS1.1.1/SLD1.0 and has been dropped
      afterwards. So it seems to me the bug in the server code is that
      GetStyles is directed to QGIS GetStyle.<br>
      <br>
      I'm aware that WMS 1.1.1/SLD1.0 are very frequently used. So a
      patch to add OGC GetStyles behaviour for 1.1.1 is very welcome.<br>
      <br>
      Regards,<br>
      Marco<br>
      <br>
      On 06.01.2014 09:40, Alessandro Pasotti wrote:<br>
    </div>
    <blockquote
cite="mid:CAL5Q670q2RPGf4je97Yuh=7Z6OO+EjE-dAoa=cP0ceooM1AOhA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div class="gmail_extra">
          <div class="gmail_quote">2014/1/3 rldhont <span dir="ltr"><<a
                moz-do-not-send="true" href="mailto:rldhont@gmail.com"
                target="_blank">rldhont@gmail.com</a>></span><br>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
              <div bgcolor="#FFFFFF" text="#000000">
                <div>Le 03/01/2014 18:09, Alessandro Pasotti a écrit :<br>
                </div>
                <div>
                  <div class="h5">
                    <blockquote type="cite">
                      <div dir="ltr">
                        <div class="gmail_extra">
                          <div class="gmail_quote">2014/1/3 rldhont <span
                              dir="ltr"><<a moz-do-not-send="true"
                                href="mailto:rldhont@gmail.com"
                                target="_blank">rldhont@gmail.com</a>></span><br>
                            <blockquote class="gmail_quote"
                              style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
                              <div bgcolor="#FFFFFF" text="#000000">
                                <div>Hi,<br>
                                  <br>
                                  It's just because the STYLE parameter
                                  is mandatory in GetMap Request and
                                  GetStyle is based on it.<br>
                                  If QGIS-Server will implement
                                  multi-styles, STYLE parameter will be
                                  usefull like in GetMap.<br>
                                </div>
                              </div>
                            </blockquote>
                            <div><br>
                            </div>
                            <div><br>
                            </div>
                            <div>Thanks, </div>
                            <div><br>
                            </div>
                            <div>just to be sure: are you saying that
                              GetStyle implementation in QGIS Mapserver
                              is based on GetMap and hence the parameter
                              is needed (even if unused) or that the OGC
                              standard says that GetStyle is kind of sub
                              method of GetMap and it requires all
                              mandatory parameters of GetMap?</div>
                          </div>
                        </div>
                      </div>
                    </blockquote>
                    <br>
                  </div>
                </div>
                Yes, but GetStyle is not an OGC defined method.<br>
                <br>
                The method defined by OGC is GetStyles to retrieve all
                the layer's styles.<br>
                <br>
                You can open a bug, and discussing about GetStyle and
                GetStyles request.<br>
              </div>
            </blockquote>
            <div><br>
            </div>
            <div><br>
            </div>
            <div>Thanks, I'll do, but first I need to know why the QGIS
              Server code is as ist is, I can't believe it's just an
              error.</div>
            <div><br>
            </div>
            <div>
              I'm still confused: I know that GetStyles is an OGC method
              and GetStyle isn't, but QGIS apparently doesn't, see line
              705 in qgis_map_serv.cpp :</div>
            <div><br>
            </div>
            <div>request.compare( "GetStyles", Qt::CaseInsensitive ) ==
              0 || request.compare( "GetStyle", Qt::CaseInsensitive ) <br>
            </div>
            <div><br>
            </div>
            <div>so, it seems like QGIS server will serve both GetStyle
              and GetStyles exactly the same.</div>
            <div><br>
            </div>
            <div>Second point (that was my original problem) is why the
              STYLE parameter that is both unused and out of the
              specifications is mandatory, unless I'm completely missing
              the point, I dont' think it is a good idea to keep it.</div>
            <div><br>
            </div>
            <div>So, please explain me why QGIS Server behaves like
              that, and if  there is not a good reason, just tell me and
              I can provide a patch to remove that stuff.</div>
            <div><br>
            </div>
            <div><br>
            </div>
          </div>
          -- <br>
          Alessandro Pasotti<br>
          w3:   <a moz-do-not-send="true" href="http://www.itopen.it">www.itopen.it</a>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Qgis-developer mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/qgis-developer">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a></pre>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Dr. Marco Hugentobler
Sourcepole -  Linux & Open Source Solutions
Weberstrasse 5, CH-8004 Zürich, Switzerland
<a class="moz-txt-link-abbreviated" href="mailto:marco.hugentobler@sourcepole.ch">marco.hugentobler@sourcepole.ch</a> <a class="moz-txt-link-freetext" href="http://www.sourcepole.ch">http://www.sourcepole.ch</a>
Technical Advisor QGIS Project Steering Committee </pre>
  </body>
</html>