[Geoserver-users] LEGEND_OPTIONS DPI parameter doesn't work with heat map layer

Hey everyone,

I’m having an issue with the legend image for my heat map layers not displaying correctly when I specify a DPI through the LEGEND_OPTIONS.

My request:

http://transbasesf.org/geoserver/transbase_v1/ows?TRANSPARENT=TRUE&VIEWPARAMS=timed%3AA&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetLegendGraphic&EXCEPTIONS=application%2Fvnd.ogc.se_xml&LAYER=vw_geoserver_switrs_col_time&STYLE=Heatmap&FORMAT=image%2Fpng&LEGEND_OPTIONS=fontName%3AGill%20Sans%20MT%3BfontSize%3A8%3Bdpi%3A660%3BfontAntiAliasing%3Atrue%3B%22

Geoserver’s response:

<?xml version="1.0" encoding="UTF-8"?>

java.lang.IllegalStateException: It is not legal to have a RasterSymbolizer here

It is not legal to have a RasterSymbolizer here

If I remove DPI from my LEGEND_OPTIONS request Geoserver returns the correct legend icon:

Is this a bug or is it just not possible to specify a DPI with a raster layer?

Thanks,

Devan

Devan Morris
Data Analyst and Cartographer
Environmental Health Branch – Population Health Division
San Francisco Department of Public Health
1390 Market Street, Suite 210
San Francisco, CA 94102