[Geoserver-devel] GetLegendGraphic improvements are on trunk and 1.5.x

GetLegendGraphic improments are now commited on trunk and on 1.5.x

Long summary:
http://docs.codehaus.org/display/GEOSDEV/GetLegendGraphic+Improvements

Short summary:
GetLegendGraphic now supports a LEGEND_OPTIONS parameter, much like the proposed FORMAT_OPTIONS parameter. Five options are currently supported. All are optional.

fontName - choose a font name (default is Sans-Serif)
fontStyle - bold, italic or plain (default is plain)
fontSize - as an integer (default is 12)
fontAntiAliasing - either 'true' or 'false', enables font antialiasing for the font in the labels
forceLabels - if given the value 'on' this forces labels to appear, even if only one rule is available on the style. if given the value 'off' this forces labels to NOT appear (be turned 'off'), even if multiple labels are available on the style.

Mfrumin: This should give you enough control to do what you need, I think!

Andrea: I implemented a generic method on org.vfny.geoserver.utils.Requests which parses parameters like LEGEND_OPTIONS or FORMAT_OPTIONS (the format of which I shamelessly copied from your page). If you wind up implementing FORMAT_OPTIONS on getmap, that method is available. Also let me know if you do it so that I can make the LEGEND_OPTIONS parameter work just like the FORMAT_OPTIONS parameter.

--saul

Great work Saul!! As usual you rock.

Farber, Saul (EEA) wrote:

Mfrumin: This should give you enough control to do what you need, I think!

Andrea: I implemented a generic method on org.vfny.geoserver.utils.Requests which parses parameters like LEGEND_OPTIONS or FORMAT_OPTIONS (the format of which I shamelessly copied from your page). If you wind up implementing FORMAT_OPTIONS on getmap, that method is available. Also let me know if you do it so that I can make the LEGEND_OPTIONS parameter work just like the FORMAT_OPTIONS parameter.

I recently implemented this for GetMap on trunk so we should probably
sync up. I am fairly certain you can just use the same KvpReader that i
wrote for FORMAT_OPTIONS for LEGEND_OPTIONS.

However it will involve porting the GetLegendGraphic operation to the
new dispatch framework (which should be trivial compared to GetMap).

-Justin

--saul

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

!DSPAM:4007,4677192e20674901796417!

--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org

Ok, cool. Let's chat about how to fit GetLegendGraphic into the right bits of the framework after the meeting tomorrow.

--saul

________________________________

From: Justin Deoliveira [mailto:jdeolive@anonymised.com]
Sent: Mon 6/18/2007 7:55 PM
To: Farber, Saul (EEA)
Cc: geoserver-devel@lists.sourceforge.net
Subject: Re: [Geoserver-devel] GetLegendGraphic improvements are on trunk and 1.5.x

Great work Saul!! As usual you rock.

Farber, Saul (EEA) wrote:

Mfrumin: This should give you enough control to do what you need, I think!

Andrea: I implemented a generic method on org.vfny.geoserver.utils.Requests which parses parameters like LEGEND_OPTIONS or FORMAT_OPTIONS (the format of which I shamelessly copied from your page). If you wind up implementing FORMAT_OPTIONS on getmap, that method is available. Also let me know if you do it so that I can make the LEGEND_OPTIONS parameter work just like the FORMAT_OPTIONS parameter.

I recently implemented this for GetMap on trunk so we should probably
sync up. I am fairly certain you can just use the same KvpReader that i
wrote for FORMAT_OPTIONS for LEGEND_OPTIONS.

However it will involve porting the GetLegendGraphic operation to the
new dispatch framework (which should be trivial compared to GetMap).

-Justin

--saul

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

!DSPAM:4007,4677192e20674901796417!

--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org/>