Hello,
I posted the relevant part of my SLD at the bottom. I wonder if I can use
geoserver variable substitution to pass the threshold values (like -9999, 0,
1.5) in my WMS url.
The examples I saw with variable substitution always refer to a constant
literal (like size):
<ogc:Function name="env">
<ogc:Literal>size</ogc:Literal>
</ogc:Function>
But in this case I think I actually have to change that literal? Any ideas?
Thanks!
<CssParameter name="stroke">
<ogc:Function name="Interpolate">
<ogc:PropertyName>VALUE</ogc:PropertyName>
<ogc:Literal>-9999</ogc:Literal>
<ogc:Literal>#000000</ogc:Literal>
<ogc:Literal>0</ogc:Literal>
<ogc:Literal>#000000</ogc:Literal>
<ogc:Literal>0</ogc:Literal>
<ogc:Literal>#A51C1C</ogc:Literal>
<ogc:Literal>1.5</ogc:Literal>
<ogc:Literal>#FF9A9A</ogc:Literal>
<ogc:Literal>1.5</ogc:Literal>
<ogc:Literal>#00FF00</ogc:Literal>
<ogc:Literal>color</ogc:Literal>
</ogc:Function>
</CssParameter>
--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/SLD-Use-variable-substitution-for-transform-function-like-interpolate-tp5259323.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users