On Fri, May 30, 2014 at 11:21 PM, Jody Garnett <[email protected]>
wrote:
> As I indicated it was a rant. The point being that the legend URL does not
> have quite the same expectations as GetLegendGrapics.
Not really. GetLegendGraphics has a single rule operation mode where the
small icon can be generated, but that assumes
you know the rules, which you can do only by fetching the styles via
GetStyles... but at that point you have the SLD client
side, so you can generate the icons you need by yourself...
>From the spec, table entry describing the "rule" parameter:
"Rule of style to produce legend graphic for, if applicable. *In the*
*case that a style has multiple rules but no specific rule is selected,*
*then the map server is obligated to produce a graphic that is*
*representative of all of the rules of the style.*"
Also about width and height:
"This gives a *hint* for the width of the returned graphic in pixels.
Vector-graphics can use this value as a hint for the level of detail
to include."
> 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.
>
See above, you cannot expect a 20x20 symbol even if you ask for a single
rule,
writing code with that expectations is bound to fail because it's not
agreeing with the spec.
>
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