Hi I am trying to generate heatmap using Geoserver Transformation SLD
(http://docs.geoserver.org/stable/en/user/styling/sld-extensions/rendering-transform.html#heatmap-generation)
. as mentioned on the page, It requires few parameters:

- data
- weightAttr
- radiusPixels
- pixelsPerCell
- outputBBOX
- outputWidth and
- outputHeight

I am able to use it by specifying these parameters directly in SLD as
default parameters. But i am not able to pass it as OpenLayers request.
There is my code:

    var layer = new OpenLayers.Layer.WMS("Heat Map",
      "http://port/geoserver/wms";, 
      {
        layers: 'work:cbsa_pop', 
        format: "image/png",
        transparent: "true",
        styles:'heatmap',
        maxExtent: new OpenLayers.Bounds(-124.269,32.545,-114.354,41.956),
        projection: new OpenLayers.Projection("EPSG:4326"),
        data:'data_attr',
        weightAttr:'w_attr',
        radiusPixels:100,
        pixelsPerCell:100,
        BBOX:new OpenLayers.Bounds(-124.269,32.545,-114.354,41.956),
        outputWidth:1000,
        outputHeight:1000
    });

This way it is not accepting any of the parameter. I am not sure what I am
doing wrong. Any guidance will be helpful.



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/How-to-pass-parameters-to-Geoserver-Heatmap-SLD-tp5061851.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to