New answers tagged

2

Here an example to create one transparent classe. You will use opacity="0.0" parameter: <sld:ColorMap> <sld:ColorMapEntry color="#000000" opacity="0.0" quantity="-999"/> <sld:ColorMapEntry color="#111111" opacity="1.0"quantity="1.0"/> <sld:ColorMapEntry color="#AAAAAA" ...


0

Your described approach will not work as the styling engine (renderer) only has information about the current feature when it comes to draw it. The easiest solution is to import your shapefile into your database and then create a view that joins the roads with the table holding your traffic details and use that to draw the map. It will be faster and more ...


0

Update: I found the solution and got a working SLD now. It is important to put the color codes in single quotes for GeoServer to recognize them as strings: <ColorMapEntry color="${env('c4','#FFFF00')}" quantity="${env('high',1)}" opacity="1.0"/> Upon validating I am still getting error messages, the SLD does work nonetheless. When accessing the ...


1

Consider the use of Rendering transformation. Check the example Heatmap SLD. with Variable substitution in SLD to pass dynamic values with WMS request parameters.


1

You can use the env function almost anywhere an expression is allowed in your SLD so your example becomes: <CssParameter name="stroke"> <ogc:Function name="Interpolate"> <ogc:PropertyName>VALUE</ogc:PropertyName> <ogc:Literal>-9999</ogc:Literal> <ogc:Literal>#000000</ogc:Literal> ...



Top 50 recent answers are included