As I indicated it was a rant. The point being that the legend URL does not
have quite the same expectations as GetLegendGrapics.

You may just end up with a 20x20 copy of our group layer icon for example.

I spend a fair bit of effort on the client side trying to request 20x20
icons often I get back something else (which I then crop) Sounds like that
is a sepereate bug report.

Jody

On Saturday, May 31, 2014, Andrea Aime <[email protected]> wrote:

> On Fri, May 30, 2014 at 10:24 PM, Jody Garnett <[email protected]
> <javascript:_e(%7B%7D,'cvml','[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
>
> -------------------------------------------------------
>


-- 
Jody Garnett
------------------------------------------------------------------------------
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

Reply via email to