I'm hosting some NAIP imagery (4-band) through Geoserver and while WMS requests show true pixel values properly, if a WCS request is issued, the raster GeoServer returns has pixel values of nodata where 0 would be.

For instance, where a pixel in the original raster would have RGBI values of 38, 0, 2, 56, the returned raster has values of 38, nodata, 2, 56.

From the logs (Verbose), I can't see any sort of operation being performed (e.g. warp) that would result in an effectively new raster, so I'm not sure what's going on here. No input transparent color is declared in the layer properties. The request looks something like:


The result is also the same if I build it using resx and resy instead of width and height.


1 Answer 1


Turns out it was tied to the output transparent color settings for the layer. Nothing to do with the handling of the wcs request itself. I had set to the output transparent to FFFFFF, which was causing geoserver to set the nodata value of the raster provided from getcoverage to 0. Solved.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.