Not understanding your point of view.

With

<ogc:Function name="parameter">
<ogc:Literal>weightAttr</ogc:Literal>
<ogc:Function name="env">
<ogc:Literal>weightAttr</ogc:Literal>
<ogc:Literal>population</ogc:Literal>
</ogc:Function>
</ogc:Function>

you define the weightAttr of the Process with the flexibilty for 
weightAttr as key of the env that can be changed by user on client side.
The <ogc:Literal>population</ogc:Literal> is then only the default 
value, when no weightAttr value is sended in the env parameter of the 
request. You can leave that.

You can also change the key to something else like "userattribute", than 
it looks like this:

<ogc:Function name="parameter">
<ogc:Literal>weightAttr</ogc:Literal>
<ogc:Function name="env">
<ogc:Literal>userattribute</ogc:Literal>
<ogc:Literal>population</ogc:Literal>
</ogc:Function>
</ogc:Function>

The request looks like this 
....env=userattribute:population2;radius:44;pixelsPerCell:20....

Regards
Nikolai



When you want to change the key in the

Am 24.06.2013 16:34, schrieb apaleja:
> Yes I know we can define parameter in SLD only. but this will be static. I
> have other attributes also in my table so on User selection Attribute-wise
> Heatmap. Thats why I need to pass 'env' parameter.
>
>
>
> --
> View this message in context: 
> http://osgeo-org.1560.x6.nabble.com/How-to-pass-parameters-to-Geoserver-Heatmap-SLD-tp5061851p5061929.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

-- 
------------------------------------------------------------------
Dipl.-Ing. (FH) Nikolai Bock, M.Eng.
i3mainz - Institut für Raumbezogene Informations- und Messtechnik
Fachhochschule Mainz - University of Applied Sciences

Lucy-Hillebrand-Straße 2
55128 Mainz, Germany

Tel:    +49(0)6131 628-1452
Fax:    +49(0)6131 628-91452

[email protected]
http://www.i3mainz.fh-mainz.de
------------------------------------------------------------------


------------------------------------------------------------------------------
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