[Geoserver-users] SLD Variable Substitution in HeatMap

Hey all,

I have this Heatmap I took from a fab website that shows how to use Heatmap SLD with a point layer. I have it working nicely but I am trying to change the weightAttr column on the fly using parameters

The SLD sheet is:

<?xml version="1.0" encoding="ISO-8859-1"?>



Heatmap

Heatmap A heatmap surface showing population density data **** **weightAttr** **TotalCount** **** radiusPixels radius 100 pixelsPerCell 10 outputBBOX wms_bbox outputWidth wms_width outputHeight wms_height .....

I’ve highlighted the parameter section in bold and I’m using the following additional text to the url:

&parameter:weightAttr: but it isn’t working (no errors)…have I got the syntax correct? I have created variables for SLD before which have worked which highly suggests I’ve missed something super simple.

If anyone can help I’d be grateful…

Many thanks

Ben