[Geoserver-users] GetLegendGraphic has no title when there is only 1 Rule

compare:
http://transit.frumin.net/geoserver/wms?VERSION=1.1.0&REQUEST=GetLegendGraphic&WIDTH=16&HEIGHT=16&FORMAT=image/png&LAYER=frumin:trx_lines&STYLE=trx_lines
which uses http://transit.frumin.net/SLD/trx_lines.sld has only one Rule no title in the legend

but
http://transit.frumin.net/geoserver/wms?VERSION=1.1.0&REQUEST=GetLegendGraphic&WIDTH=16&HEIGHT=16&FORMAT=image/png&LAYER=frumin:trx_lines&STYLE=trx_lines_multi
which uses http://transit.frumin.net/SLD/trx_lines_multi.sld (identical to the one above, but with an added Rule to draw the line in blue) has 2 legend entries, both with the correct title.

I imagine this is the same bug as I sent in before whereby when you specify a Rule=XXX in your GetLegendGraphic the title goes away, but since it has a slightly different genesis so I figure it's worth reporting.

thanks,
mike

Not sure what to do about this one. I would not be against changing the
behaviour. Perhaps add another parameter to contol it. Something like
"&title=true"

Saul: you should just did some legend graphic improvements didn;t you.
Whats your opinion on this one?

-Justin

Michael Frumin wrote:

compare:
http://transit.frumin.net/geoserver/wms?VERSION=1.1.0&REQUEST=GetLegendGraphic&WIDTH=16&HEIGHT=16&FORMAT=image/png&LAYER=frumin:trx_lines&STYLE=trx_lines
<http://transit.frumin.net/geoserver/wms?VERSION=1.1.0&REQUEST=GetLegendGraphic&WIDTH=16&HEIGHT=16&FORMAT=image/png&LAYER=frumin:trx_lines&STYLE=trx_lines&gt;
which uses http://transit.frumin.net/SLD/trx_lines.sld has only one Rule
no title in the legend

but
http://transit.frumin.net/geoserver/wms?VERSION=1.1.0&REQUEST=GetLegendGraphic&WIDTH=16&HEIGHT=16&FORMAT=image/png&LAYER=frumin:trx_lines&STYLE=trx_lines_multi
<http://transit.frumin.net/geoserver/wms?VERSION=1.1.0&REQUEST=GetLegendGraphic&WIDTH=16&HEIGHT=16&FORMAT=image/png&LAYER=frumin:trx_lines&STYLE=trx_lines_multi&gt;
which uses http://transit.frumin.net/SLD/trx_lines_multi.sld (identical
to the one above, but with an added Rule to draw the line in blue) has 2
legend entries, both with the correct title.

I imagine this is the same bug as I sent in before whereby when you
specify a Rule=XXX in your GetLegendGraphic the title goes away, but
since it has a slightly different genesis so I figure it's worth reporting.

thanks,
mike

-------------------------------------------------------------------------
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-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

!DSPAM:4007,4672d3ac126281015089218!

--
Justin Deoliveira
The Open Planning Project
jdeolive@anonymised.com

Yes, I've actually got some getLegendGraphic improvements about to be checked in (optional font anti-aliasing, etc).

WRT a specific rule choice not appearing with a title, I think this is a good thing. If you know the rule name (and are asking for exactly ONE rule) then you know enough to give it a good title.

With the latest changes to the legend graphic code I could definitely make this the default, but have an option to change it (&LEGEND_OPTIONS=forceTitle:true)

Michael, would something like the above option make sense to you?

--saul

________________________________

From: Justin Deoliveira [mailto:jdeolive@anonymised.com]
Sent: Fri 6/15/2007 2:26 PM
To: Michael Frumin; Saul Farber
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] GetLegendGraphic has no title when there is only 1 Rule

Not sure what to do about this one. I would not be against changing the
behaviour. Perhaps add another parameter to contol it. Something like
"&title=true"

Saul: you should just did some legend graphic improvements didn;t you.
Whats your opinion on this one?

-Justin

Michael Frumin wrote:

compare:
http://transit.frumin.net/geoserver/wms?VERSION=1.1.0&REQUEST=GetLegendGraphic&WIDTH=16&HEIGHT=16&FORMAT=image/png&LAYER=frumin:trx_lines&STYLE=trx_lines
<http://transit.frumin.net/geoserver/wms?VERSION=1.1.0&REQUEST=GetLegendGraphic&WIDTH=16&HEIGHT=16&FORMAT=image/png&LAYER=frumin:trx_lines&STYLE=trx_lines&gt;
which uses http://transit.frumin.net/SLD/trx_lines.sld has only one Rule
no title in the legend

but
http://transit.frumin.net/geoserver/wms?VERSION=1.1.0&REQUEST=GetLegendGraphic&WIDTH=16&HEIGHT=16&FORMAT=image/png&LAYER=frumin:trx_lines&STYLE=trx_lines_multi
<http://transit.frumin.net/geoserver/wms?VERSION=1.1.0&REQUEST=GetLegendGraphic&WIDTH=16&HEIGHT=16&FORMAT=image/png&LAYER=frumin:trx_lines&STYLE=trx_lines_multi&gt;
which uses http://transit.frumin.net/SLD/trx_lines_multi.sld (identical
to the one above, but with an added Rule to draw the line in blue) has 2
legend entries, both with the correct title.

I imagine this is the same bug as I sent in before whereby when you
specify a Rule=XXX in your GetLegendGraphic the title goes away, but
since it has a slightly different genesis so I figure it's worth reporting.

thanks,
mike

-------------------------------------------------------------------------
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-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

!DSPAM:4007,4672d3ac126281015089218!

--
Justin Deoliveira
The Open Planning Project
jdeolive@anonymised.com