In an SLD style for my raster layer, I am able to utilize variable
replacement to customize the label for a particular entry. For example:
<ColorMapEntry ... label="${env('value', 15)}" />
This also works when I have multiple values, such as:
<ColorMapEntry ... label="${env('valuea', 15} to ${env('valueb', 25)}" />
However, if I have text in front of the substation it does not work, such
as:
<ColorMapEntry ... label="Less than ${env('value', 15)}" />
Is this the desired behavior or a bug? Or is there another way I should be
doing this?
If it is a bug, it appears that this behavior could be corrected by
replacing "labelString.startsWith" with "labelString.contains" in
LegendUtils::getLabel and enhancing the unit test to cover this case.
_______________________________________________
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