[wms-dev] WMS servers supporting user styles

Yewondwossen Assefa assefa at DMSOLUTIONS.CA
Wed Jan 12 17:30:16 EST 2005


Richard,

My general feeling is that the SLD should always be used in a library
mode (at least thet is the way I always understood it) with LAYERS
parameters being the one controlloing the returned layers. But since It
is defined in the specs to have dual way of functionning, you could add
this as an enhacement bug and It will be adresses for future releases of
Mapserver.

Best Regards,

Richard Gould wrote:
> Daniel Morissette wrote:
>
>> Richard Gould wrote:
>>
>>>
>>> Here is my request to the server:
>>> http://dev1.dmsolutions.ca/cgi-bin/mswms_gmap?SLD=http://udig.refractions.net/park.sld&FORMAT=image/png&TRANSPARENT=TRUE&HEIGHT=372&REQUEST=GetMap&BBOX=-119.66968440860214,57.57125320534285,-111.37356827956987,62.91062206347434&WIDTH=578&&SRS=EPSG:4326&VERSION=1.1.1
>>>
>>>
>>> In theory, that should display only the park layer, in yellow.
>>>
>>> I just tried something else, and this seems to work:
>>> http://dev1.dmsolutions.ca/cgi-bin/mswms_gmap?LAYERS=demo&SLD=http://udig.refractions.net/park.sld&FORMAT=image/png&TRANSPARENT=TRUE&HEIGHT=372&REQUEST=GetMap&BBOX=-119.66968440860214,57.57125320534285,-111.37356827956987,62.91062206347434&WIDTH=578&&SRS=EPSG:4326&VERSION=1.1.1
>>>
>>>
>>> The park layer comes up in yellow.
>>>
>>
>> I think the problem is just that you are missing the mandatory
>> "LAYERS=" parameter in your first URL. I haven't looked at SLD in a
>> while, but I would think that even when using user-defined styles in
>> an SLD you still need to specify the LAYERS= parameters.
>
>
> Hi Daniel,
>
> In the SLD 1.0.0 specification, section 6.4 it states that if the SLD
> parameter is being used in the request, it replaces the LAYERS and
> STYLES parameters. They also give an example that uses SLD but not
> LAYERS and STYLEs. Same goes for the SLD_BODY parameter.
>
> Thanks,
>
> Richard
> _______________________________________________
> wms-dev mailing list
> wms-dev at lists.eogeo.org
> http://lists.eogeo.org/mailman/listinfo/wms-dev
>


--
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst

Email: assefa at dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925
----------------------------------------------------------------



More information about the mapserver-users mailing list