Hi all,

When i am using two different rules to stylize a raster file the legend is
generated only for the first rule, how can i generate the legend for both
rules?

Example: the below code, will generate a legend just with two rows the
"lower than 8" and "8 to 50". The row "Null Value: 15" is colored with the
specified color but the getlegendGraphic ignores it, how can i force the
legend to include this?

"
<sld:Rule>
  <sld:RasterSymbolizer>
<sld:ChannelSelection>
  <sld:GrayChannel>
<sld:SourceChannelName>1</sld:SourceChannelName>
  </sld:GrayChannel>
</sld:ChannelSelection>
<sld:ColorMap type="intervals">
  <sld:ColorMapEntry color="#000000" opacity="1" quantity="8.0"
label="lower than 8"/>
  <sld:ColorMapEntry color="#FF0100" opacity="1" quantity="50.0" label="8
to 50"/>
</sld:ColorMap>
  </sld:RasterSymbolizer>
</sld:Rule>
<sld:Rule>
  <sld:RasterSymbolizer>
<sld:ChannelSelection>
  <sld:GrayChannel>
<sld:SourceChannelName>1</sld:SourceChannelName>
  </sld:GrayChannel>
</sld:ChannelSelection>
<sld:ColorMap type="values">
  <sld:ColorMapEntry color="#010203" opacity="1" quantity="15" label="Null
Value: 15"/>
</sld:ColorMap>
  </sld:RasterSymbolizer>
</sld:Rule>
"

Any help is  appreciated, Thanks!
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to