[Qgis-developer] QGIS Server SLD GetStyles method bug?
Andrea Peri
aperi2007 at gmail.com
Mon Jan 6 02:13:04 PST 2014
I check also the wms 1.3.0 .
Is it also here required.
In the 7.3.3.4 paragraph it is named "the mandatory styles parameter.."
also it explain:
>the STYLES parameter shall include null
>values between commas (as in “STYLES=style1,,style2,,”). If all layers are
to be shown using the default style,
>either the form “STYLES=” or “STYLES=,,,” is valid.
I guess the misunderstandin is on the mean of the style domanin: "0+".
I Guess this don't mean option parameter but instead it mean 0 values or
more.
Infact the paramter Style could give using the sintax:
..&style=&..
Regards,
Andrea.
2014/1/6 Andrea Peri <aperi2007 at gmail.com>
> Are you referencing to the getmap rquest ?
>
> In the wms specs 1.1.0 (OGC 01-047r2) the style parameter is reported as
> required in the GetMap request.
> see table 7 pag. 23.
>
> Also the styles param is null valuable . In this situation the wms will
> choose the default style values for every layer.
>
>
>
> 2014/1/6 Alessandro Pasotti <apasotti at gmail.com>
>
>> 2014/1/3 rldhont <rldhont at gmail.com>
>>
>>> Le 03/01/2014 18:09, Alessandro Pasotti a écrit :
>>>
>>> 2014/1/3 rldhont <rldhont at gmail.com>
>>>
>>>> Hi,
>>>>
>>>> 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.
>>>>
>>>
>>>
>>> Thanks,
>>>
>>> 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?
>>>
>>>
>>> Yes, but GetStyle is not an OGC defined method.
>>>
>>> The method defined by OGC is GetStyles to retrieve all the layer's
>>> styles.
>>>
>>> You can open a bug, and discussing about GetStyle and GetStyles request.
>>>
>>
>>
>> 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.
>>
>> 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 :
>>
>> request.compare( "GetStyles", Qt::CaseInsensitive ) == 0 ||
>> request.compare( "GetStyle", Qt::CaseInsensitive )
>>
>> so, it seems like QGIS server will serve both GetStyle and GetStyles
>> exactly the same.
>>
>> 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.
>>
>> 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.
>>
>>
>> --
>> Alessandro Pasotti
>> w3: www.itopen.it
>>
>> _______________________________________________
>> Qgis-developer mailing list
>> Qgis-developer at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>>
>
>
>
> --
> -----------------
> Andrea Peri
> . . . . . . . . .
> qwerty àèìòù
> -----------------
>
--
-----------------
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-----------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20140106/4d90edde/attachment-0001.html>
More information about the Qgis-developer
mailing list