On Tue, Apr 12, 2011 at 7:14 PM, Stephen V. Mather <
[email protected]> wrote:
> Hi All,
>
> Short of generating a really specific redirect or rewrite
> on my proxy , is there any trivial way to get geoserver to serve back an
> alternate legend icon for raster? I’m using a version in the 2.0 series. I
> was hoping there was just a buried PNG to modify or replace, but doing a
> little poking around, and I suspect the raster icon is auto-generated… .
>
Yep, it is auto generated so that it can fit any requested size, the client
is free to ask for large
icon, e.g.:
http://demo1.geo-solutions.it/geoserver/wms?service=WMS&version=1.1.0&request=GetLegendGraphic&layer=gn:world&format=image/png&width=128&height=128
A static icon would have to be stretched and become quite ugly (even in the
reasonable
range of icon sizes, between 8x8 and 32x32).
We could probably allow the admin to provide a range of icons to be used for
the different
sizes, pick the closest one and stretch it to the actual requested size.
Anyways, that would require new code to handle the configuration and the
generation
of the icon.
If anybody is interested in taking this up I can show where one would have
to make the
changes.
Cheers
Andrea
--
-------------------------------------------------------
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 962313
mob: +39 333 8128928
http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf
-------------------------------------------------------
------------------------------------------------------------------------------
Forrester Wave Report - Recovery time is now measured in hours and minutes
not days. Key insights are discussed in the 2010 Forrester Wave Report as
part of an in-depth evaluation of disaster recovery service providers.
Forrester found the best-in-class provider in terms of services and vision.
Read this report now! http://p.sf.net/sfu/ibm-webcastpromo
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users