Hi,
Since Geoserver does not support the GetLegend for SLD with transformation
functions, I want to take care about this.
My suggestion is to create the legend as following image:
For each specified color-value pair,
e.g.
I will produce an image with the symbol in the corresponding color followed
by the numeric value.
Finally these images are merged in a single image that represents the
legend.
Interpolated values (like in the raster colormap) will not be displayed.
Any feedback or different suggestion is welcome
cheers Markus
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/How-to-create-legendimage-for-SLD-transformation-functions-tp5047614.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
On Wed, Apr 17, 2013 at 2:11 PM, markusin <markus.innerebner@anonymised.com>wrote:
Hi,
Since Geoserver does not support the GetLegend for SLD with transformation
functions, I want to take care about this.
My suggestion is to create the legend as following image:
For each specified color-value pair,
e.g.
I will produce an image with the symbol in the corresponding color followed
by the numeric value.
Finally these images are merged in a single image that represents the
legend.
Interpolated values (like in the raster colormap) will not be displayed.
Any feedback or different suggestion is welcome
The above seems reasonable. For the interpolate function, I wonder if you
could just reuse the code building the raster colormap legend?
Cheers
Andrea
--
GeoServer training in Milan, 6th & 7th June 2013! Visit
http://geoserver.geo-solutions.it for more information.
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
-------------------------------------------------------
Hi Andrea,
The above seems reasonable. For the interpolate function, I wonder if you
could just reuse the code building the raster colormap legend?
Thanks for the feedback.
An idea is to show in the legend the shape of the symbol (circle, square, …) and in addition the colormap with the associated values.
Cheers Markus
On Tue, Apr 23, 2013 at 10:41 AM, Markus Innerebner <
markus.innerebner@anonymised.com> wrote:
Hi Andrea,
> The above seems reasonable. For the interpolate function, I wonder if you
> could just reuse the code building the raster colormap legend?
Thanks for the feedback.
An idea is to show in the legend the shape of the symbol (circle, square,
…) and in addition the colormap with the associated values.
Ah right, see what you mean now, sure in this case the raster legend code
cannot be used.
Cheers
Andrea
--
GeoServer training in Milan, 6th & 7th June 2013! Visit
http://geoserver.geo-solutions.it for more information.
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
-------------------------------------------------------