Hi all

I have set up an ImagePyramid layer (thanks Daniele) that I query via WMS
format=image/png
transparent=true
It uses the default raster style.

When there are granules in the bbox, even when they only partially cover the area, the region where there is no granule is transparent. But when there are really no granule to load at all, the resulting PNG is fully black, with no transparency.

When using gdalinfo on the "normal" PNG image I have :
Band 1 Block=1281x1 Type=Byte, ColorInterp=Red
  Mask Flags: PER_DATASET ALPHA
Band 2 Block=1281x1 Type=Byte, ColorInterp=Green
  Mask Flags: PER_DATASET ALPHA
Band 3 Block=1281x1 Type=Byte, ColorInterp=Blue
  Mask Flags: PER_DATASET ALPHA
Band 4 Block=1281x1 Type=Byte, ColorInterp=Alpha

When using gdalinfo on the "black" PNG image I have :
Band 1 Block=1281x1 Type=Byte, ColorInterp=Gray
  Mask Flags: PER_DATASET ALPHA
Band 2 Block=1281x1 Type=Byte, ColorInterp=Alpha

I cannot set outputtransparentcolor to #000000, because I have black areas in my granules that must not be rendered as transparent.

I have found this old thread that seem to be relevent in my case :
http://osgeo-org.1560.x6.nabble.com/ImageMosaic-transparency-problem-td3795094.html
but I don'ty think the solution would be suitable for me, because I have no control over the input granules' palette.

So how can I have a fully transparent PNG image when there is no granule in the queried bbox ?

Thanks a lot for your help !

Best regards
--
Arnaud


_______________________________________________
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