Hi Sergey, I think that you have hit the same problem I have found time ago: https://osgeo-org.atlassian.net/browse/GEOS-7636
Is that the same bug? Cheers, Daniele On Mon, Sep 10, 2018 at 5:06 PM, Sergey Kolosov <[email protected]> wrote: > 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 > > -- Regards, Daniele Romagnoli == GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Ing. Daniele Romagnoli Senior Software Engineer GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) Italy phone: +39 0584 962313 fax: +39 0584 1660272 http://www.geo-solutions.it http://twitter.com/geosolutions_it ------------------------------------------------------- Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia. This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail.
_______________________________________________ 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
