On Fri, May 30, 2014 at 10:24 PM, Jody Garnett <[email protected]>
wrote:
> Can I have a small rant in response to this.
>
> The legend URL does not have to call get legend graphics, and the goal for
> each image is not quite the same.
>
> In a GetCapabilities doc we just want the image, as we already have the
> title sitting in parsed form in the get capabilities data structure.
>
> Solve this problem by throwing a no titles option into your get legend
> graphic URL, return a consistent 20x20 image and let's move on with life.
>
This is clearly impossible. Have a style with 5 rules? You need 5 20x20
icons with titles on their sides to make the five icons readable.
Have a color map? Its representation is way larger.
In general (beyond the limits of our GLG implementation) the idea that you
can return a single 20x20 icon works in some specific cases,
like targeting a single rule that has a simple style (e.g., no categorize
usage, no color map), but in the capabilities document
we have to refer to a legend for the layer.
Leave the title out sure, that's not a problem (but it does not make sense
for layer groups of course), but you simply cannot cram a
full layer style in a 20x20 icon
Cheers
Andrea
--
==
Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
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
-------------------------------------------------------
------------------------------------------------------------------------------
Time is money. Stop wasting it! Get your web API in 5 minutes.
www.restlet.com/download
http://p.sf.net/sfu/restlet
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel