Hi Andrea,

GeoServer 2.13.2.
Legend (png file) is in the 'www' directory in GEOSERVER_DATA_DIR.
Style is the default one.
Configuration:
https://drive.google.com/open?id=1Ntlg4WTpsEgKj5pm81Gb98ckoMHa1qZj

How to reproduce: I've created new data folder and copied default raster
style in the new one named 'test_legend'. Then I added legend to the style
via 'Add legend' button and provided path to legend file '
http://localhost:8080/geoserver/www/legend/heightmap.png'. Clicking on
'Auto-detect image size and type' filled width, height and format of the
legend. After that I've saved the legend and assigned it to the layer
'nurc:mosaic'.

Important note: by clicking on the 'Preview legend' button in the style
editor I can see legend 'heightmap.png' 123x767, but in the layer editor on
the Publish tab under Default style I see default  bluish image 20x20.

The legend request URL is:
http://localhost:8080/geoserver/nurc/wms?SERVICE=wms&REQUEST=GetLegendGraphic&VERSION=1.0.0&FORMAT=image/png&LAYER=mosaic
Result of the requested URL is the default bluish style 20x20 instead of
the image 'heightmap.png' 123x767
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to