| Template
based on
GeoTools'
* http://svn.geotools.org/geotools/trunk/gt/module/main/src/org/geotools/renderer/lite/StyledShapePainter.javaStyledShapePainter that produces a BufferedImage with the appropiate
legend graphic for a given GetLegendGraphic WMS request.
It should be enough for a subclass to implement
and getContentType() in order to encode the BufferedImage
produced by this class to the appropiate output format.
This class takes literally the fact that the arguments WIDTH
and HEIGHT are just hints about the desired dimensions
of the produced graphic, and the need to produce a legend graphic
representative enough of the SLD style for which it is being generated.
Thus, if no RULE parameter was passed and the style has more
than one applicable Rule for the actual scale factor, there will be
generated a legend graphic of the specified width, but with as many stacked
graphics as applicable rules were found, providing by this way a
representative enough legend.
author: Gabriel Roldan, Axios Engineering version: $Id: DefaultRasterLegendProducer.java 7945 2007-12-05 18:09:38Z aaime $ |