The legend won't work. Legend generation in general does not work with symbology that directly depends on attribute values, because it does not know what values to put in there.
I guess it could be an interesting addition to GeoServer to allow user configuration of sample values to use when generating the legend (along with a title). This would be a new feature, if you are interested in pushing for it see here: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer Cheers Andrea On Tue, Nov 22, 2016 at 5:55 PM, Devin Eyre <[email protected]> wrote: > Yesterday, the windbarbs began working on the new server. The error below > is actually for the legend. > > I have uploaded legend graphics to the styles directory on the server, but > a call to getLegendGraphic does not return them. Is there a different > format other than just an image file that's needed for this to work? > ------------------------------ > *From:* Devin Eyre > *Sent:* Monday, November 21, 2016 9:19 AM > *To:* [email protected] > *Subject:* [Geoserver-users] Windbarbs not working in geoserver 2.9.2 > > > We had them working in version 2.9.0. We installed 2.9.2 on a new server > (Ubuntu 16.04), and they haven't worked on this server. Is there a plugin > that's required to make these work? > > Below is the error from geoserver's log: > > > ERROR [geoserver.ows] - > java.lang.IllegalArgumentException: The specified mark > strConcat([strConcat([windbarbs://default(], [magnitude])], [)[mph]]) was > not found! > at org.geotools.renderer.style.SLDStyleFactory.createMarkStyle( > SLDStyleFactory.java:713) > at org.geotools.renderer.style.SLDStyleFactory.createPointStyle( > SLDStyleFactory.java:676) > at org.geotools.renderer.style.SLDStyleFactory.createPointStyle( > SLDStyleFactory.java:543) > at org.geotools.renderer.style.SLDStyleFactory. > createStyleInternal(SLDStyleFactory.java:378) > at org.geotools.renderer.style.SLDStyleFactory.createStyle( > SLDStyleFactory.java:325) > at org.geoserver.wms.legendgraphic.BufferedImageLegendGraphicBuil > der.buildLegendGraphic(BufferedImageLegendGraphicBuilder.java:413) > at org.geoserver.wms.legendgraphic.PNGLegendOutputFormat. > produceLegendGraphic(PNGLegendOutputFormat.java:41) > at org.geoserver.wms.legendgraphic.PNGLegendOutputFormat. > produceLegendGraphic(PNGLegendOutputFormat.java:22) > at org.geoserver.wms.GetLegendGraphic.run( > GetLegendGraphic.java:49) > at org.geoserver.wms.DefaultWebMapService.getLegendGraphic( > DefaultWebMapService.java:349) > at sun.reflect.GeneratedMethodAccessor412.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke( > DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > at org.springframework.aop.support.AopUtils. > invokeJoinpointUsingReflection(AopUtils.java:302) > at org.springframework.aop.framework.ReflectiveMethodInvocation. > invokeJoinpoint(ReflectiveMethodInvocation.java:190) > at org.springframework.aop.framework.ReflectiveMethodInvocation. > proceed(ReflectiveMethodInvocation.java:157) > at org.geoserver.kml.WebMapServiceKmlInterceptor.invoke( > WebMapServiceKmlInterceptor.java:34) > at org.springframework.aop.framework.ReflectiveMethodInvocation. > proceed(ReflectiveMethodInvocation.java:179) > at org.geoserver.ows.util.RequestObjectLogger.invoke( > RequestObjectLogger.java:55) > at org.springframework.aop.framework.ReflectiveMethodInvocation. > proceed(ReflectiveMethodInvocation.java:179) > > ------------------------------------------------------------ > ------------------ > > _______________________________________________ > Geoserver-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geoserver-users > > -- == GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.it http://twitter.com/geosolutions_it *AVVERTENZE AI SENSI DEL D.Lgs. 196/2003* Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003. The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc. -------------------------------------------------------
------------------------------------------------------------------------------
_______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
