Hello all,

I am trying to create a windbarb layer following the instructions in this post:
https://geoserver.geo-solutions.it/edu/en/multidim/accessing_multidim/rtx/wind_barbs.html

I had successfully used this in the past, but I cannot get it working with version 2.16.2. I have an older server with 2.13.2, there it works correctly. I am not aware of any configuration differences between the two. Could someone please verify if it is working correctly or am I missing something?

Details about the errors I get:
I have converted a two-band GeoTIFF from a grib file, with u,v vectors. This is published in a GeoTIFF layer and viewed through the Layer preview OpenLayers map. If I add the style from the mentioned post I get an error (see below). I have noticed that if I remove either the interpolation or scale parameter from the RasterAsPointCollection function in the sld, windbarbs are drawn.

best regards,
Gyorgy Tomcsanyi

stacktrace:
2020-03-27 10:38:25,726 ERROR [geoserver.ows] -
org.geoserver.platform.ServiceException: Rendering process failed
        at org.geoserver.wms.map.RenderedImageMapOutputFormat.produceMap(RenderedImageMapOutputFormat.java:635)         at org.geoserver.wms.map.RenderedImageMapOutputFormat.produceMap(RenderedImageMapOutputFormat.java:276)         at org.geoserver.wms.map.RenderedImageMapOutputFormat.produceMap(RenderedImageMapOutputFormat.java:133)
        at org.geoserver.wms.GetMap.executeInternal(GetMap.java:707)
        at org.geoserver.wms.GetMap.run(GetMap.java:287)
        at org.geoserver.wms.GetMap.run(GetMap.java:110)
        at org.geoserver.wms.DefaultWebMapService.getMap(DefaultWebMapService.java:253)
        at sun.reflect.GeneratedMethodAccessor343.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
...
Caused by: java.lang.RuntimeException: Failed to evaluate the process function, error is: java.lang.IllegalArgumentException: The number of image bands (4) differs from the number of supplied 'SampleDimension' objects (2).         at org.geotools.process.function.ProcessFunction.evaluate(ProcessFunction.java:162)         at org.geotools.renderer.lite.RenderingTransformationHelper.applyRenderingTransformation(RenderingTransformationHelper.java:246)         at org.geotools.renderer.lite.StreamingRenderer.getFeatures(StreamingRenderer.java:2262)         at org.geotools.renderer.lite.StreamingRenderer.processStylers(StreamingRenderer.java:2155)         at org.geotools.renderer.lite.StreamingRenderer.paint(StreamingRenderer.java:890)         at org.geoserver.wms.map.RenderedImageMapOutputFormat.produceMap(RenderedImageMapOutputFormat.java:594)
        ... 125 more
Caused by: org.geotools.process.ProcessException: java.lang.IllegalArgumentException: The number of image bands (4) differs from the number of supplied 'SampleDimension' objects (2).         at org.geotools.process.factory.AnnotationDrivenProcessFactory$InvokeMethodProcess.execute(AnnotationDrivenProcessFactory.java:644)         at org.geotools.process.function.ProcessFunction.evaluate(ProcessFunction.java:148)
        ... 130 more
Caused by: java.lang.IllegalArgumentException: The number of image bands (4) differs from the number of supplied 'SampleDimension' objects (2).         at org.geotools.coverage.grid.RenderedSampleDimension.create(RenderedSampleDimension.java:97)         at org.geotools.coverage.grid.GridCoverage2D.<init>(GridCoverage2D.java:195)         at org.geotools.coverage.grid.GridCoverageFactory.create(GridCoverageFactory.java:588)         at org.geotools.coverage.processing.BaseScaleOperationJAI.deriveGridCoverage(BaseScaleOperationJAI.java:250)         at org.geotools.coverage.processing.OperationJAI.doOperation(OperationJAI.java:301)         at org.geotools.coverage.processing.CoverageProcessor.doOperation(CoverageProcessor.java:583)         at org.geotools.coverage.processing.CoverageProcessor.doOperation(CoverageProcessor.java:606)         at org.geotools.process.raster.AffineProcess.execute(AffineProcess.java:137)         at org.geotools.process.raster.RasterAsPointCollectionProcess.execute(RasterAsPointCollectionProcess.java:163)
        at sun.reflect.GeneratedMethodAccessor359.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.geotools.process.factory.AnnotationDrivenProcessFactory$InvokeMethodProcess.execute(AnnotationDrivenProcessFactory.java:628)



_______________________________________________
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


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to