[Geoserver-users] wind direction arrows sld - how to filter out null values

Hi there,

Following examples found in this list, I have successfully created an SLD that produces wind direction arrows from a single band wdir geotiff. (Note that unlike many of the examples, I am not using 2 bands – wind dir and wind speed – but rather just single band for wdir).

My SLD works!, However, my problem/question is… the geotiff contains null values at the outter extents of the grid, outside of the area of interest. I believe these null cell’s do in fact contain a value of -3.4028234663853e+038. I’m wondering how (and where) would I apply this filter to ensure these arrows are not drawn on the map?

Here is my SLD:



Wind

Wind data emisphere True interpolation InterpolationBilinear scale wms_scale_denominator 8 50000 4 100000 2 500000 1 1000000 0.2 5000000 0.1 10000000 0.05 20000000 0.02 extshape://sarrow #000000 #000000 0.2 12 WDIR

Thanks for any help you can provide.

(Note, I am running Geoserver version 2.8.0 on linux)

John