Andrea Aime wrote:
> Wayne Fang ha scritto:
>> After investigating this further, I was going to create an issue in 
>> jira proposing to change the way KMLLegendTransformer works.  
>> Currently, it relies on a GetLegendGraphic request to produce a 
>> full-fledged legend, despite that being contrary to its spec.  The 
>> KMLLegendTransformer should figure out what rules apply and create 
>> the "representative enough" legend graphic and produce appropriate 
>> KML for Google Earth to display.  As it is, it generates a 
>> GetLegendGraphic request in KML.
> Yeah, that was the easiest way to get a legend out of our existing code.
> How would you create one in KML? Moreover, the way KML is done means
> we switch from raster rendering to KML rendering, probably the legend
> should do the same, since the KML rendering is similar, but not equal,
> to the raster one?
> Cheers
> Andrea
Perhaps I should have said "create an issue to document that this change 
should be done".  I won't be able to move this forward without getting 
the funding to do it.

As for how it's done, that hasn't been thought through yet.  I wonder if 
we could return an inline png in the kml/kmz, instead of a GLG request 
in KML that then gets the legend graphic?  The KMLLegendTransformer 
would effectively make internal requests to get the icons for each 
applicable rule, or maybe just make a call to the appropriate 
*LegendGraphicProducer, and serve that up?

Cheers,
Wayne

-- 
Refractions Research
Suite 300 - 1207 Douglas St
Victoria, BC, V8W 2E7, Canada
ph: (250) 383-3022
fax:(250) 383-2140


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to