[Geoserver-users] How to pass parameters to Geoserver Heatmap SLD

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.

Hi,

the data attribute are the features of the layer you defined the style for. So this should not be passed in a separate attribute.
All other attributes you can define with the env parameter in the request.
Look at this:
http://docs.geoserver.org/stable/en/user/styling/sld-extensions/substitution.html

For BBox and the raster image size there are predefined variables which use the standard parameter of the wms request.

Hope that helps.

Regards
Nikolai

Am 24.06.2013 11:16, schrieb apaleja:

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

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

nikolai.bock@anonymised.com
http://www.i3mainz.fh-mainz.de
------------------------------------------------------------------

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.

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&quot;,
             {
               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
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

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.

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>

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>

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
Geoserver-users@lists.sourceforge.net
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

nikolai.bock@anonymised.com
http://www.i3mainz.fh-mainz.de
------------------------------------------------------------------

Yes I know we can define Default paramater in SLD. like you said, it will be
used in case of ENV is not passed.

Please have a look at below URL (this is URL with ENV parameter for layer
overview of Geoserver). I hope it is correct but unfortunately it is not
using 'population' parameter in result.

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

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

Yes the url should be okay.
Are there changes when changing the other parameter like pixelsPerCell and Radius with the env parameter?

Am 24.06.2013 18:03, schrieb apaleja:

Yes I know we can define Default paramater in SLD. like you said, it will be
used in case of ENV is not passed.

Please have a look at below URL (this is URL with ENV parameter for layer
overview of Geoserver). I hope it is correct but unfortunately it is not
using 'population' parameter in result.

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

NO, there is no changes in result by changes in output.

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

Okay, please send your SLD definition, there has to be something wrong.

Am 24.06.2013 20:02, schrieb apaleja:

NO, there is no changes in result by changes in output.

Here my my SLD. I have done any changes in it except weightAttr Name.

<?xml version="1.0" encoding="ISO-8859-1"?>
   <StyledLayerDescriptor version="1.0.0"
       xsi:schemaLocation="http://www.opengis.net/sld
StyledLayerDescriptor.xsd"
       xmlns="http://www.opengis.net/sld&quot;
       xmlns:ogc="http://www.opengis.net/ogc&quot;
       xmlns:xlink="http://www.w3.org/1999/xlink&quot;
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;&gt;
     <NamedLayer>
       <Name>Heatmap</Name>
       <UserStyle>
         <Title>Heatmap</Title>
         <Abstract>A heatmap surface showing population density</Abstract>
         <FeatureTypeStyle>
           <Transformation>
             <ogc:Function name="gs:Heatmap">
               <ogc:Function name="parameter">
                 <ogc:Literal>data</ogc:Literal>
               </ogc:Function>
               <ogc:Function name="parameter">
                 <ogc:Literal>weightAttr</ogc:Literal>
                 <ogc:Literal>population</ogc:Literal>
               </ogc:Function>
               <ogc:Function name="parameter">
                 <ogc:Literal>radiusPixels</ogc:Literal>
                 <ogc:Function name="env">
                   <ogc:Literal>radius</ogc:Literal>
                   <ogc:Literal>100</ogc:Literal>
                 </ogc:Function>
               </ogc:Function>
               <ogc:Function name="parameter">
                 <ogc:Literal>pixelsPerCell</ogc:Literal>
                 <ogc:Literal>10</ogc:Literal>
               </ogc:Function>
               <ogc:Function name="parameter">
                 <ogc:Literal>outputBBOX</ogc:Literal>
                 <ogc:Function name="env">
                   <ogc:Literal>wms_bbox</ogc:Literal>
                 </ogc:Function>
               </ogc:Function>
               <ogc:Function name="parameter">
                 <ogc:Literal>outputWidth</ogc:Literal>
                 <ogc:Function name="env">
                   <ogc:Literal>wms_width</ogc:Literal>
                 </ogc:Function>
               </ogc:Function>
               <ogc:Function name="parameter">
                 <ogc:Literal>outputHeight</ogc:Literal>
                 <ogc:Function name="env">
                   <ogc:Literal>wms_height</ogc:Literal>
                 </ogc:Function>
               </ogc:Function>
             </ogc:Function>
           </Transformation>
          <Rule>
            <RasterSymbolizer>
            
              <Geometry>
                <ogc:PropertyName>the_geom</ogc:PropertyName></Geometry>
              <Opacity>0.6</Opacity>
              <ColorMap type="ramp" >
                <ColorMapEntry color="#FFFFFF" quantity="0" label="nodata"
                  opacity="0"/>
                <ColorMapEntry color="#FF00FF" quantity=".05"
label="values"/>
                <ColorMapEntry color="#000000" quantity="0.1"
label="values"/>
                <ColorMapEntry color="#0000FF" quantity="0.2"
label="values"/>
                <ColorMapEntry color="#00FF00" quantity="0.3"
label="values"/>
                <ColorMapEntry color="#FF0000" quantity="0.4"
label="values"/>
                <ColorMapEntry color="#FF00FF" quantity="0.5"
label="values"/>
                <ColorMapEntry color="#FF55FF" quantity="0.6"
label="value"/>
                <ColorMapEntry color="#FF1111" quantity="0.7" label="values"
/>
                <ColorMapEntry color="#FFFF00" quantity="0.8" label="values"
/>
                <ColorMapEntry color="#FFFF00" quantity="0.9"
label="values"/>
                <ColorMapEntry color="#00FFFF" quantity="1.0"
label="values"/>
                
              </ColorMap>
            </RasterSymbolizer>
           </Rule>
         </FeatureTypeStyle>
       </UserStyle>
     </NamedLayer>
    </StyledLayerDescriptor>

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

Also I think this SLD is not giving proper result. Please check out the
image attached. Red dots are Points. But underlying heatmap is not as per
weighted attribute.

heatmap.png <http://osgeo-org.1560.x6.nabble.com/file/n5062048/heatmap.png&gt;

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

On Tue, Jun 25, 2013 at 10:56 AM, apaleja <adrock4u@anonymised.com> wrote:

Also I think this SLD is not giving proper result. Please check out the
image attached. Red dots are Points. But underlying heatmap is not as per
weighted attribute.

heatmap.png <http://osgeo-org.1560.x6.nabble.com/file/n5062048/heatmap.png
>

Hmm... or maybe not? If my guess is right, that's a map of the cities in
California,
San Francisco and Los Angeles are the biggest concentration of the
population
attribute and basically drive all the density in the heatmap towards them.
Nothing strange about that?

Cheers
Andrea

--

Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------

Yes Andrea, It is a map of the cities in California. It should be true.
I haven't noticed that San Francisco and Los Angeles are the biggest
concentration.

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

With this SLD it should be possible to change the attributes with the env parameter:

<?xml version="1.0" encoding="ISO-8859-1"?>
    <StyledLayerDescriptor version="1.0.0"
        xsi:schemaLocation="http://www.opengis.net/sld
StyledLayerDescriptor.xsd"
        xmlns="http://www.opengis.net/sld&quot;
        xmlns:ogc="http://www.opengis.net/ogc&quot;
        xmlns:xlink="http://www.w3.org/1999/xlink&quot;
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;&gt;
      <NamedLayer>
        <Name>Heatmap</Name>
        <UserStyle>
          <Title>Heatmap</Title>
          <Abstract>A heatmap surface showing population density</Abstract>
          <FeatureTypeStyle>
            <Transformation>
              <ogc:Function name="gs:Heatmap">
                <ogc:Function name="parameter">
                  <ogc:Literal>data</ogc:Literal>
                </ogc:Function>
                <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>
                <ogc:Function name="parameter">
                  <ogc:Literal>radiusPixels</ogc:Literal>
                  <ogc:Function name="env">
                    <ogc:Literal>radius</ogc:Literal>
                    <ogc:Literal>100</ogc:Literal>
                  </ogc:Function>
                </ogc:Function>
                <ogc:Function name="parameter">
<ogc:Literal>pixelsPerCell</ogc:Literal>
                  <ogc:Function name="env">
<ogc:Literal>pixelsPerCell</ogc:Literal>
                    <ogc:Literal>10</ogc:Literal>
                  </ogc:Function>
                </ogc:Function>
                <ogc:Function name="parameter">
                  <ogc:Literal>outputBBOX</ogc:Literal>
                  <ogc:Function name="env">
                    <ogc:Literal>wms_bbox</ogc:Literal>
                  </ogc:Function>
                </ogc:Function>
                <ogc:Function name="parameter">
                  <ogc:Literal>outputWidth</ogc:Literal>
                  <ogc:Function name="env">
                    <ogc:Literal>wms_width</ogc:Literal>
                  </ogc:Function>
                </ogc:Function>
                <ogc:Function name="parameter">
                  <ogc:Literal>outputHeight</ogc:Literal>
                  <ogc:Function name="env">
                    <ogc:Literal>wms_height</ogc:Literal>
                  </ogc:Function>
                </ogc:Function>
              </ogc:Function>
            </Transformation>
           <Rule>
             <RasterSymbolizer>

               <Geometry>
<ogc:PropertyName>the_geom</ogc:PropertyName></Geometry>
               <Opacity>0.6</Opacity>
               <ColorMap type="ramp" >
                 <ColorMapEntry color="#FFFFFF" quantity="0" label="nodata"
                   opacity="0"/>
                 <ColorMapEntry color="#FF00FF" quantity=".05"
label="values"/>
                 <ColorMapEntry color="#000000" quantity="0.1"
label="values"/>
                 <ColorMapEntry color="#0000FF" quantity="0.2"
label="values"/>
                 <ColorMapEntry color="#00FF00" quantity="0.3"
label="values"/>
                 <ColorMapEntry color="#FF0000" quantity="0.4"
label="values"/>
                 <ColorMapEntry color="#FF00FF" quantity="0.5"
label="values"/>
                 <ColorMapEntry color="#FF55FF" quantity="0.6"
label="value"/>
                 <ColorMapEntry color="#FF1111" quantity="0.7" label="values"
/>
                 <ColorMapEntry color="#FFFF00" quantity="0.8" label="values"
/>
                 <ColorMapEntry color="#FFFF00" quantity="0.9"
label="values"/>
                 <ColorMapEntry color="#00FFFF" quantity="1.0"
label="values"/>

               </ColorMap>
             </RasterSymbolizer>
            </Rule>
          </FeatureTypeStyle>
        </UserStyle>
      </NamedLayer>
     </StyledLayerDescriptor>

http://localhost:8081/geoserver/work/wms?service=WMS
&version=1.1.0
&request=GetMap
&layers=work:cbsa_pop
&env=pixelsPerCell:100
&styles=&bbox=-124.269371032715,32.5459365844727,-114.354026794434,41.9560432434082
&width=512
&height=485
&srs=EPSG:4326
&format=application/openlayers

and

http://localhost:8081/geoserver/work/wms?service=WMS
&version=1.1.0
&request=GetMap
&layers=work:cbsa_pop
&env=pixelsPerCell:10
&styles=&bbox=-124.269371032715,32.5459365844727,-114.354026794434,41.9560432434082
&width=512
&height=485
&srs=EPSG:4326
&format=application/openlayers

and the the weightAttr you should changeable with this:

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

Thank you Nikolai. It is working. I am testing it and if you can guide me in
this matter also.

Nikolai Bock wrote

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

If I remove default parameter then it should not give any result. something
like this :

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

                  </ogc:Function>
                </ogc:Function>

But it is giving me same Heatmap result. I am little confuse with this. also
if you can tell me what values are preferable for radiusPixels and
pixelPerCell.

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

The weightAttr is a optional parameter of the heatmap wps process. When given no valid value, he uses a weight value of 1 for every point.
The pixelsPerCell attribute is for performance issues. Its the resolution of the heatmap. Default of the wps process is 1. This is the best resolution but the performance can be a problem.
RadiusPixels attribute you should test. Its dependent on the closeness of your points.

Regards
Nikolai

Am 25.06.2013 12:57, schrieb apaleja:

.....

But it is giving me same Heatmap result. I am little confuse with this. also
if you can tell me what values are preferable for radiusPixels and
pixelPerCell.
....

That's great explanation Nikolai. Thank you very much for all help.

I have a shapefile with polygons. I want to generate Choropleth map.
Whatever geoserver SLD examples I saw , uses static filtering from SLD only.
Is it possible to create Choropleth maps using SLD like this heatmap SLD?

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

This may be of use as a starting point:
http://blog.opengeo.org/2012/08/02/thematic-map-creation-with-sld-is-now-much-easier/

Jonathan

On 26 June 2013 10:12, apaleja <adrock4u@anonymised.com> wrote:

That’s great explanation Nikolai. Thank you very much for all help.

I have a shapefile with polygons. I want to generate Choropleth map.
Whatever geoserver SLD examples I saw , uses static filtering from SLD only.
Is it possible to create Choropleth maps using SLD like this heatmap SLD?


View this message in context: http://osgeo-org.1560.x6.nabble.com/How-to-pass-parameters-to-Geoserver-Heatmap-SLD-tp5061851p5062269.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@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

This transmission is intended for the named addressee(s) only and may contain sensitive or protectively marked material up to RESTRICTED and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation.

On Thu, Jun 27, 2013 at 12:25 PM, Jonathan Moules <
jonathanmoules@anonymised.com> wrote:

This may be of use as a starting point:

http://blog.opengeo.org/2012/08/02/thematic-map-creation-with-sld-is-now-much-easier/

Transformations functions are surely nice, but they have a dark side too:
GetLegendGraphic
does not understand them, so you kiss goodbye the ability to generate a
legend if you use
them.

It's something that can be improved, but not exactly five minutes coding.

Cheers
Andrea

--

Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------