GetLegendGraphic fails with a layergroup containing a coverage invisble at current scale
Description
If a layergroup contains a coverage, asking a legend for the group throws an IllegalArgumentException if the coverage is not visible at current scale, because there is no rule applicable for the coverage. RasterLayerLegendHelper should simply return a null image in this case, letting BufferedImageLegendGraphicBuilder collect legends for the other group layers.
Environment
None
Activity
codehaus
April 10, 2015 at 3:52 PM
CodeHaus Comment From: aaime - Time: Sun, 21 Jul 2013 03:21:36 -0500 ---------------------
<p>Mass close all issues in "resolved" state that have not received further comments in the last month</p>
If a layergroup contains a coverage, asking a legend for the group throws an IllegalArgumentException if the coverage is not visible at current scale, because there is no rule applicable for the coverage.
RasterLayerLegendHelper should simply return a null image in this case, letting BufferedImageLegendGraphicBuilder collect legends for the other group layers.