[OpenLayers-Users] dynamic SLD for WMS layer
Florent Gravin
florent.gravin at bluecham.net
Thu Apr 2 01:08:11 EDT 2009
hey,
could you share the peace of code you use to generate your SLD ?
anyway, i'm quite sure i saw somewhere exemple to "how add new filter in an
existing sld", on the fly, with openlayers commands, but i can't find where
again.
thks for help
----- Original Message -----
From: "Brad Spencer" <brad at cubewerx.com.au>
To: "'floflo'" <florent.gravin at bluecham.net>; <users at openlayers.org>
Sent: Thursday, April 02, 2009 11:56 AM
Subject: RE: [OpenLayers-Users] dynamic SLD for WMS layer
> Hi,
>
> I use SLDs all the time and I even build new ones on the fly allowing the
> user to define their own filters etc. and apply them with mergeNewParams.
> These SLDs need to be stored somewhere and you have a couple of options
> there. You can have a directory of SLDs (or DBMS) on your application
> server
> that is accessible to your application; or you can do a putStyles into the
> WMS service (need access to WMS service) and load the edited SLD into the
> service for all to use.
>
> However, if you can access your WMS service and your SLDs are somewhat
> fixed
> you can of course pre-load different SLDs as Styles (depending on WMS
> service I guess) then you can just flick between these predefined styles
> using mergeNewParams with a style change.
>
> Cheers, Brad...
>
> -----Original Message-----
> From: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org]
> On
> Behalf Of floflo
> Sent: Thursday, April 02, 2009 11:03 AM
> To: users at openlayers.org
> Subject: [OpenLayers-Users] dynamic SLD for WMS layer
>
>
> hi,
>
> I use a WMS polygon layer and want to apply different styles on it
> depending
> on indicators...
>
> i know i can dynamicaly change the SLD of my layer with
> layer.mergeNewParams({SLD:..}); but i had to have made all of my SLD
> before.
> That i want is to generate it dynamically....
>
> Is there a way to add filter or parameter in the active SLD of my layer ?
> Should I use the param "style" of my WMS layer instead (i saw there's one
> but not present in the API Doc).
>
> thks for help
> --
> View this message in context:
> http://n2.nabble.com/dynamic-SLD-for-WMS-layer-tp2572331p2572331.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
More information about the Users
mailing list