<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hi Alessandro<br>
      <br>
      Pull request is applied. Good work!<br>
      <br>
      One thing I noticed is that QgsProjectParser::getStyles uses
      QgsProjectParser::mapLayerFromTypeName. Like that, the styles are
      only returned for layers published as WFS. Is that intentional?
      Otherwise, QgsProjectParser::mapLayerFromStyle might be a better
      option, as it returns the layers published via WMS.<br>
      <br>
      Regards,<br>
      Marco<br>
      <br>
      On 06.01.2014 11:37, Alessandro Pasotti wrote:<br>
    </div>
    <blockquote
cite="mid:CAL5Q672zexOOPvg2K6rxjyQARTQaFt2+-d63U+oRvFRogfwOuA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div class="gmail_extra">
          <div class="gmail_quote">2014/1/6 Marco Hugentobler <span
              dir="ltr"><<a moz-do-not-send="true"
                href="mailto:marco.hugentobler@sourcepole.ch"
                target="_blank">marco.hugentobler@sourcepole.ch</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>
                  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>
                </div>
              </div>
            </blockquote>
            <div><br>
            </div>
            <div><br>
            </div>
            <div>
              <div><br>
              </div>
              <div>Hi Marco,</div>
              <div><br>
              </div>
              <div>thank you for clarifying, you are absolutely right
                and it seems that it was dropped after 1.0, my issue is
                related to "GetStyles" request, (please notice the
                trailing "s"), I used this documentation
                (02-070_Styled_Layer_Descriptor_Implementation_Specification.pdf,
                <a moz-do-not-send="true"
                  href="http://portal.opengeospatial.org/files/?artifact_id=1188">http://portal.opengeospatial.org/files/?artifact_id=1188</a>)
                 :</div>
              <div><br>
              </div>
              <div>13.1. GetStyles</div>
              <div>The GetStyles operation is used to retrieve
                user-defined styles from a WMS. The</div>
              <div>parameters of the HTTP-GET method are defined as
                follows:</div>
              <div>Parameter Required Description VERSION Required</div>
              <div> Version as required by OGC interfaces.</div>
              <div>REQUEST Required Value must be “GetStyles”.</div>
              <div>LAYERS Required Comma-separated list of named layers
                for which to retrieve style</div>
              <div>descriptions.</div>
              <div>
                SLDVER Optional The SLD version requested for the SLD
                document. The default is</div>
              <div>to return the highest version supported by the
                server. If a version</div>
              <div>is requested that the server does not support, then
                the next lower</div>
              <div>supported version is supported by the server is
                returned, or the</div>
              <div>server’s lowest supported version. This is similar to
                WMS version</div>
              <div>negotiation.</div>
              <div><br>
              </div>
              <div>If I understand this correctly, we should split
                GetStyle and GetStyles calls and support the second one
                only if SLDVER is set and  SLDVER=1.0.0, raise an
                exception if not match.</div>
            </div>
            <div><br>
            </div>
            <div>GetStyles should then accept the following parameters:</div>
            <div><br>
            </div>
            <div>REQUEST=GetStyles<br>
            </div>
            <div>LAYERS=comma separated list of TypeNames<br>
            </div>
            <div>SLDVER=1.0.0 (this seems the only version that supports
              GetStyles)<br>
            </div>
            <div><br>
            </div>
            <div><br>
            </div>
            <div>BTW: does anybody know what method took the place of
              GetStyles after it was dropped?</div>
            <div><br>
            </div>
          </div>
          <div><br>
          </div>
          -- <br>
          Alessandro Pasotti<br>
          w3:   <a moz-do-not-send="true" href="http://www.itopen.it">www.itopen.it</a>
        </div>
      </div>
    </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>