<div dir="ltr"><div><div><div><div><div>I check also the wms 1.3.0 .<br></div>Is it also here required.<br><br></div><div>In the 7.3.3.4 paragraph it is named "the mandatory styles parameter.."<br><br></div><div>
also it explain:<br><br>>the STYLES parameter shall include null<br>>values between commas (as in “STYLES=style1,,style2,,”). If all layers are to be shown using the default style,<br>>either the form “STYLES=” or “STYLES=,,,” is valid.<br>
<br></div><div>I guess the misunderstandin is on the mean of the style domanin: "0+".<br><br></div><div>I Guess this don't mean option parameter but instead it mean 0 values or more.<br></div><div>Infact the paramter Style could give using the sintax:<br>
<br></div><div>..&style=&..<br><br></div><div>Regards,<br><br>Andrea.<br><br></div></div></div></div><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014/1/6 Andrea Peri <span dir="ltr"><<a href="mailto:aperi2007@gmail.com" target="_blank">aperi2007@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Are you referencing to the getmap rquest ?<br></div><div><br></div>In the wms specs 1.1.0 (OGC 01-047r2)  the style parameter is reported as required in the GetMap request.<br>
</div>see table 7 pag. 23.<br>
<br></div>Also the styles param is null valuable . In this situation the wms will choose the default style values for every layer.<br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014/1/6 Alessandro Pasotti <span dir="ltr"><<a href="mailto:apasotti@gmail.com" target="_blank">apasotti@gmail.com</a>></span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><div>2014/1/3 rldhont <span dir="ltr"><<a 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>
    <blockquote type="cite">
      <div dir="ltr">
        <div class="gmail_extra">
          <div class="gmail_quote">2014/1/3 rldhont <span dir="ltr"><<a 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></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><div>

-- <br>
Alessandro Pasotti<br>w3:   <a href="http://www.itopen.it" target="_blank">www.itopen.it</a>
</div></div></div>
<br></div></div><div class="im">_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org" target="_blank">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br></div></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all">
<br>-- <br>-----------------<br>Andrea Peri<br>
. . . . . . . . . <br>qwerty àèìòù<br>-----------------<br>
</font></span></div>
</blockquote></div><br><br clear="all"><br>-- <br>-----------------<br>Andrea Peri<br>. . . . . . . . . <br>qwerty àèìòù<br>-----------------<br>
</div>