<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>
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>
<br>
Regards,<br>
René-Luc D'Hont<br>
3Liz<br>
<br>
Le 03/01/2014 17:58, Alessandro Pasotti a écrit :<br>
</div>
<blockquote
cite="mid:CAL5Q6728_pWhLN3GPaA9j+Z+SD-QOcxK0XoUKabCV2WFnJO6Hg@mail.gmail.com"
type="cite">
<div dir="ltr">Hi,
<div><br>
</div>
<div>while testing for GetStyles on master I noticed that the
server raises an exception if the parameter STYLE is not
specified.</div>
<div><br>
</div>
<div>Digging in the code, it appears that Q_UNUSED( styleName
); </div>
<div><a moz-do-not-send="true"
href="https://github.com/qgis/QGIS/blob/master/src/mapserver/qgsprojectparser.cpp#L1669">https://github.com/qgis/QGIS/blob/master/src/mapserver/qgsprojectparser.cpp#L1669</a></div>
<div><br>
</div>
<div><br>
</div>
<div>
is there any reason for requiring a parameter (STYLE) that is
not cited in the official OGC specifications and it's not even
used?</div>
<div><br>
</div>
<div>BTW: the server can be faked with an empty STYLE parameter,
and the exception is raised here: <a moz-do-not-send="true"
href="https://github.com/qgis/QGIS/blob/master/src/mapserver/qgswmsserver.cpp#L588">https://github.com/qgis/QGIS/blob/master/src/mapserver/qgswmsserver.cpp#L588</a></div>
<div><br>
</div>
<div>Should I file a ticket?<br clear="all">
<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>
<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>
</body>
</html>