the problem exists only with the raster style, and the url that i posted is the one that geoserver use to show the legend image in the "publishing" tab of a layer properties, however the problem exists even with a getlegendgraphic request for a specific raster layer.
I have attached the image returned from geoserver.
thanks
Alessandro
On 16/04/2013 19:00, Jonathan Moules wrote:
Agreed, it does seem to be missing. But I altered the URL slightly to point to the default style "point" instead and it works ok.
wms?REQUEST=GetLegendGraphic&VERSION=1.0.0&FORMAT=image/png&WIDTH=20&HEIGHT=20&STRICT=false&style=point&LEGEND_OPTIONS=forceRule:True;dx:0.2;dy:0.2;mx:0.2;my:0.2;fontStyle:bold;borderColor:0000ff;border:true;fontColor:ff0000;fontSize:18
So I guess the issue is in the sld file, not the lack of "&layer=".
Odd - the SLD spec says that "LAYER" is "Required", so GeoServer should bug out when its not there. I'll open a bug report for that one, though that's not necessarily the problem here.
Jonathan
On 16 April 2013 17:44, Rahkonen Jukka <jukka.rahkonen@anonymised.com <mailto:jukka.rahkonen@anonymised.com>> wrote:
Hi,
Do I read it wrong or is the &LAYER= missing?
-Jukka Rahkonen-
_________ _______________________
Alessandro Burastero wrote:
> hello to all,
> i've installed the geoserver 2.3.0 and i have a problem in
the getlegendgraphic request for a raster style. The rule
(quantity attribute) is not drawed in the lengend, also if i
specify the forceRule:true option in the request.
> The sld file is attached to the mail and the request url is:
>
http://localhost:8080/geoserver/dew/wms?REQUEST=GetLegendGraphic&VERSION
=1.0.0&FORMAT=image/png&WIDTH=20&HEIGHT=20&STRICT=false&style=ACR4Rain&LEGEND_OPTIONS=forceRule:True;dx:0.2;dy:0.2;mx:0.2;my:0.2;fontStyle:bold;borderColor:0000ff;border:true;fontColor:ff0000;fontSize:18
<http://localhost:8080/geoserver/dew/wms?REQUEST=GetLegendGraphic&VERSION=1.0.0&FORMAT=image/png&WIDTH=20&HEIGHT=20&STRICT=false&style=ACR4Rain&LEGEND_OPTIONS=forceRule:True;dx:0.2;dy:0.2;mx:0.2;my:0.2;fontStyle:bold;borderColor:0000ff;border:true;fontColor:ff0000;fontSize:18><http://172.16.104.245:8080/geoserver/dew/wms?REQUEST=GetLegendGraphic&VERSION=1.0.0&FORMAT=image/png&WIDTH=20&HEIGHT=20&STRICT=false&style=ACR4Rain&LEGEND_OPTIONS=forceRule:True;dx:0.2;dy:0.2;mx:0.2;my:0.2;fontStyle:bold;borderColor:0000ff;border:true;fontColor:ff0000;fontSize:18>
> thanks for the help
Alessandro
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for
building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free
account!
http://www2.precog.com/precogplatform/slashdotnewsletter
____________________ _________________________ __
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
<mailto:Geoserver-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/geoserver-users
This transmission is intended for the named addressee(s) only and may contain sensitive or protectively marked material up to RESTRICTED and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation.
