Hi,

your request looking fine in the OpenLayers code.
When you looking for the link in your first mail you have the style 
example for heatmap.
You have to replace in line 21 <ogc:Literal>pop2000</ogc:Literal> with

<ogc:Function  name="env">
        <ogc:Literal>weightAttr</ogc:Literal>
         <ogc:Literal>population</ogc:Literal>   --> this is an optional 
default value
</ogc:Function>

The same you have to use for pixelsPerCell in line 32

<ogc:Function  name="env">
        <ogc:Literal>pixelsPerCell</ogc:Literal>
         <ogc:Literal>10</ogc:Literal>   --> this is an optional default value
</ogc:Function>

In radiusPixels the funcionality is already implemented in the example.
outputBBox and outputWidth already uses the predefinend values, you not have to 
integrate in the env parameter on request.

Hope that helps.

Regards
Nikolai

  





Am 24.06.2013 13:17, schrieb apaleja:
> In that case also It is not giving any output. I am trying to pass parameter
> (env=) to directly URL. so now it is like :
>
> http://localhost:8081/geoserver/work/wms?service=WMS&version=1.1.0&request=GetMap&layers=work:cbsa_pop&*env=weightAttr:population*&styles=&bbox=-124.269371032715,32.5459365844727,-114.354026794434,41.9560432434082&width=512&height=485&srs=EPSG:4326&format=application/openlayers
>
> This is also not giving any result of Layer preview. and also not getting
> result through this OpenLayers request :
>
> var political = new OpenLayers.Layer.WMS("Heat Map",
>              "http://localhost:8081/geoserver/work/wms";,
>              {
>                layers: 'work:cbsa_pop',
>                format: "image/png",
>                transparent: "true",
>                styles:'heatmap',
>                env:'weightAttr:population;radiusPixels:10;pixelsPerCell:100'
>
>          });
>
> It would be helpful if you can provide any working example.
>
>
>
> --
> View this message in context: 
> http://osgeo-org.1560.x6.nabble.com/How-to-pass-parameters-to-Geoserver-Heatmap-SLD-tp5061851p5061880.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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users

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

Build for Windows Store.

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

Reply via email to