Hi,
In Geoserver's heat-map, as mentioned in the documentations, I can select the 
weightAtrr field, for example:

<ogc:Function name="vec:Heatmap">
    <ogc:Function name="parameter">
        <ogc:Literal>data</ogc:Literal>
    </ogc:Function>
    <ogc:Function name="parameter">
        <ogc:Literal>weightAttr</ogc:Literal>
        <ogc:Literal>field1</ogc:Literal>
    </ogc:Function>
</ogc:Function>

My situation is that the weight attribute, that I want to create the heat-map 
depending on it, is not a field of the layer, it's a Geotools custom function 
that I created. This function takes the field id as a parameter, and makes some 
queries according to it, then returns a number. For example the function is in 
the form:
int GetTheValue(int id)

My question is that how to make this in SLD.

<ogc:Function name="vec:Heatmap">
            <ogc:Function name="parameter">
              <ogc:Literal>data</ogc:Literal>
            </ogc:Function>
            <ogc:Function name="parameter">
              <ogc:Literal>weightAttr</ogc:Literal>
                 <!-- call the function here -->
            </ogc:Function>
</ogc:Function>

Regards,Fawzy
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to