[Qgis-developer] QGIS Server SLD GetStyles method bug?

rldhont rldhont at gmail.com
Fri Jan 3 09:02:08 PST 2014


It's just because the STYLE parameter is mandatory in GetMap Request and 
GetStyle is based on it.
If QGIS-Server will implement multi-styles, STYLE parameter will be 
usefull like in GetMap.

René-Luc D'Hont

Le 03/01/2014 17:58, Alessandro Pasotti a écrit :
> Hi,
> while testing for GetStyles on master I noticed that the server raises 
> an exception if the parameter STYLE is not specified.
> Digging in the code, it appears that Q_UNUSED( styleName );
> https://github.com/qgis/QGIS/blob/master/src/mapserver/qgsprojectparser.cpp#L1669
> is there any reason for requiring a parameter (STYLE) that is not 
> cited in the official OGC specifications and it's not even used?
> BTW: the server can be faked with an empty STYLE parameter, and the 
> exception is raised here: 
> https://github.com/qgis/QGIS/blob/master/src/mapserver/qgswmsserver.cpp#L588
> Should I file a ticket?
> -- 
> Alessandro Pasotti
> w3: www.itopen.it <http://www.itopen.it>
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20140103/70f1eae5/attachment-0001.html>

More information about the Qgis-developer mailing list