Re: [Geoserver-users] Windbarbs not working in geoserver 2.9.2
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 <devin.e...@stormgeo.com> 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:* geoserver-users@lists.sourceforge.net > *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 > Geoserver-users@lists.sourceforge.net > 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
Re: [Geoserver-users] Windbarbs not working in geoserver 2.9.2
Dear Devin, when I had trouble with external legend images in the styles directory (I always got NullPointerException when trying to set the image name from web UI) I figured out that I can just edit the styles XML configuration file and then reload the catalog to apply changes. Somehow, it works for me. The XML file of your style has the same name as the SLD file, just different extension. See below for an example configuration with the legend.png file in the styles directory: <id>StyleInfoImpl-41238c1:157e2c81df1:-2db4</id> <name>my_style</name> <format>sld</format> <languageVersion> <version>1.0.0</version> </languageVersion> <filename>my_style.sld</filename> <legend> <width>159</width> <height>435</height> <format>image/png;charset=UTF-8</format> <onlineResource>legend.png</onlineResource> </legend> Cheers, Peter On 22. 11. 2016 17:55, Devin Eyre 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:* geoserver-users@lists.sourceforge.net *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.BufferedImageLegendGraphicBuilder.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 Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users -- Peter Kovac IMS Programmer MicroStep-MIS peter.ko...@microstep-mis.com -- ___ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
Re: [Geoserver-users] Windbarbs not working in geoserver 2.9.2
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: geoserver-users@lists.sourceforge.net 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.BufferedImageLegendGraphicBuilder.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 Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
[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.BufferedImageLegendGraphicBuilder.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 Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users