Good Day List,  

Currently having an issue making a request to Geoserver using the Transparent 
argument. I currently have a list of image mosaic raster layers which are all 
generated the same way and added to geoserver the same way but yet only one 
works with 'transparent=true.'  

So that was convoluted. Anyway, make a WMS request and I get back an image.  
Example: 
http://localhost:8080/geoserver/ENV-792B/wms?service=WMS&version=1.1.0&request=GetMap&layers=ENV-792B:300mb_For_Guppy&styles=&bbox=47.968125,23.989358857500005,64.968125,39.989358297500004&width=512&height=481&srs=EPSG:4326&format=image%2Fpng
  

Works Great, everybody happy.  

Now I make a the same request with &transparent=true at the end and boom: java 
hates me and kicks me in the balls (Short copy below and GeoserverError.txt 
attached is the full request and error):  

> Error: One factory fails for the operation "Mosaic"
> Occurs in: org.geoserver.jai.ConcurrentOperationRegistry
> java.lang.reflect.InvocationTargetException
>     at sun.reflect.GeneratedMethodAccessor124.invoke(Unknown Source)
>     at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> ……..
> Caused by: java.lang.IllegalArgumentException: Alpha images must be 
> single-banded.
>     at com.sun.media.jai.opimage.MosaicOpImage.<init>(MosaicOpImage.java:234)
>     at com.sun.media.jai.opimage.MosaicRIF.create(MosaicRIF.java:47)
>     ... 87 more
> 22 Apr 16:02:22 ERROR [geoserver.ows] -  
> java.lang.RuntimeException: - Unable to render RenderedOp for this operation.



Hmmm, unfortunate. Well for grins I was messing around testing and tried 
http://localhost:8080/geoserver/ENV-792B/wms?service=WMS&version=1.1.0&request=GetMap&layers=ENV-792B:300mb_For_Guppy,ENV-792B:300mb_For_Guppy&styles=&bbox=47.968125,23.989358857500005,64.968125,39.989358297500004&width=512&height=481&srs=EPSG:4326&format=image%2Fpng&transparent=true
 which is the same request just with the exact same layer twice and it works. 
Transparency works. Everyone is happy. I am using the default raster SLD that 
ships with geoserver but for grins I have gone through and changed it slightly 
to use use an opacity of 0.99 and no difference. I'm at a complete loss. Please 
tell me I'm doing something stupid and this is an easy fix.  

Thank you for your time.   
--  
Chris Gervais

Attachment: GeoserverError.txt
Description: Binary data

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to