[OpenLayers-Users] Way to mask raster WMS layers
Phil Scadden
p.scadden at gns.cri.nz
Wed Oct 10 17:20:39 PDT 2012
>
> I was wondering if there is a way to mask raster layers that are
> loaded via WMS (OpenLayers.Layer.WMS). What I am thinking of is a case
> where for all pixels that are withing a certain range make them
> transparent.
I have never done this but it should be straightfoward. You want to take
the SLD being used and add a colourmapentry with opacity="0" for the
range you want.
For your layer do:
layer.mergeNewParams({sld_body:mySLD}); //mySLD contains the new raster
style
and redraw.
Notice: This email and any attachments are confidential. If received in error please destroy and immediately notify us. Do not copy or disclose the contents.
More information about the Users
mailing list