Hi all,
I would like to implement the GetLegendGraphic response for styles with WPS rendering transformations, but I want to get some input first.
My thought is to edit BufferedImageLegendGraphicBuilder to check for the existence of a Transformation in the style. Then determine if the output format is a GridCoverage2D or SimpleFeatureCollection. The logic to use a RasterLayerLegendHelper will be based on the current buildRasterLegend boolean and the output format of the transformation (if it exists). If it is a raster layer but is transformed into vector data then render the legend using the vector logic. Am I on the right track or is there maybe a better way to do this?
Thanks,
Michael Romero
Software Engineer
Forward Slope Inc.
On Tue, Nov 27, 2012 at 9:27 PM, Michael Romero <mromero@anonymised.com> wrote:
Hi all,
I would like to implement the GetLegendGraphic response for styles with WPS rendering transformations, but I want to get some input first.
My thought is to edit BufferedImageLegendGraphicBuilder to check for the existence of a Transformation in the style. Then determine if the output format is a GridCoverage2D or SimpleFeatureCollection. The logic to use a RasterLayerLegendHelper will be based on the current buildRasterLegend boolean and the output format of the transformation (if it exists). If it is a raster layer but is transformed into vector data then render the legend using the vector logic. Am I on the right track or is there maybe a better way to do this?
Seems to be you’re on the right track
Cheers
Andrea
–
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
http://www.geo-solutions.it
http://twitter.com/geosolutions_it