I have found a curious problem concerning WMS, group layers and images with
transparency. I start by creating a group layer containing two layers. Each
layer sources its data from a TIFF image and the images have RGBA bands. I load
the group layer in a client via WMS. I find that there is a range of requests
which fail to draw. I have included some example requests below. The logged
error is included below too.
If I replace the source TIFFs with RGB (no transparency) the problem does not
occur.
If I add the individual layers (ie the layers that are included in the group
layer) separately to the client, the problem does not occur. But if I add the
individual layers to the client in a single request (ie layers=layer-1,layer-2)
the problem does occur.
I found this problem when using GeoServer 2.15.2 (Oracle Corporation: 1.8.0_162
(Java HotSpot(TM) 64-Bit Server VM) and Windows 10). I found it did not occur
when using GeoServer 2.14.0 but it did occur in 2.14.1 and higher.
I wonder if it is either a bug (that I'll happily report with some sample data)
or whether perhaps I have missed a configuration step or something. I'd be
grateful for any advice.
Kind regards,
James
===================================
Here's some more detail on the problem:
When an error occurs the following is logged:
07 Aug 10:51:23 WARN [renderer.lite] - The specified dimensional parameter is
non-positive.
java.lang.IllegalArgumentException: The specified dimensional parameter is
non-positive.
at javax.media.jai.ImageLayout.setTileHeight(ImageLayout.java:585)
07 Aug 10:51:23 ERROR [renderer.lite] - The specified dimensional parameter is
non-positive.
java.lang.IllegalArgumentException: The specified dimensional parameter is
non-positive.
at javax.media.jai.ImageLayout.setTileHeight(ImageLayout.java:585)
07 Aug 10:51:23 ERROR [geoserver.ows] -
org.geoserver.platform.ServiceException: Rendering process failed
at
org.geoserver.wms.map.RenderedImageMapOutputFormat.produceMap(RenderedImageMapOutputFormat.java:628)
The following request results in an error:-
http://localhost:8081/geoserver/ows?WIDTH=636&HEIGHT=636&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=-20037508.34278924391,-20048966.10401460156,20037508.34278924391,20048966.10401459411&CRS=EPSG:3857&LAYERS=oceanwise:pm-ps&STYLES=&FORMAT=image/png&TRANSPARENT=TRUE
The following request results in an image:-
http://localhost:8081/geoserver/ows?WIDTH=637&HEIGHT=637&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=-20037508.34278924391,-20048966.10401460156,20037508.34278924391,20048966.10401459411&CRS=EPSG:3857&LAYERS=oceanwise:pm-ps&STYLES=&FORMAT=image/png&TRANSPARENT=TRUE
The requests are for a box 636 x 636 and 637 x 637 respectively.
The following request results in an error:-
http://localhost:8081/geoserver/ows?WIDTH=318&HEIGHT=318&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=-20037508.34278924391,-20048966.10401460156,20037508.34278924391,20048966.10401459411&CRS=EPSG:3857&LAYERS=oceanwise:pm-ps&STYLES=&FORMAT=image/png&TRANSPARENT=TRUE
The following request results in an image:-
http://localhost:8081/geoserver/ows?WIDTH=317&HEIGHT=317&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=-20037508.34278924391,-20048966.10401460156,20037508.34278924391,20048966.10401459411&CRS=EPSG:3857&LAYERS=oceanwise:pm-ps&STYLES=&FORMAT=image/png&TRANSPARENT=TRUE
The requests are for a box 318 x 318 and 317 x 317 respectively. Boxes between
318 x 318 and 636 x 636 also fail. But requests for boxes smaller than 318 x
318 and larger than 636 x 636 succeed. I don't want to attach too much
significance to the formulation of the request. Save to say that there's a set
of requests that fail and a set of requests that do not fail.
Affected version: 2.15.2 - checking previous versions shows that the problem
does not occur in 2.14.0 but it does occur in 2.14.1 onward.
Environment:
Client: QGIS 8.3.1-Zanzibar
Container: Tomcat 8.5.43
JVM: Oracle Corporation: 1.8.0_162 (Java HotSpot(TM) 64-Bit Server VM)
Native JAI: false
Native JAI ImageIO: false
OS: Windows 10
______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
______________________________________________________________________
_______________________________________________
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