Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
WCS 2.0.1 single band RangeSubset writes out 3-band GeoTIFF #5415
With Mapserver 7.0.0 and with an attached mapfile, the following GetCoverage request that selects only one band with RangeSubset yields a 3-band GeoTIFF which only appears greyscale because the requested BandA is copied to all three bands.
Part of gdalinfo report from the "out.tif" file
Single band / dual band / 4-band output is successful with a self-configured outputformat that sets the imagemode into BYTE.
For RBG-NIR imagery it seems also good to add this formatoption that prevents labeling the fourth band as alpha:
I wonder if it will be enough to improve the documentation or if the default GeoTIFF outputformat for WCS should be changed in the code. An out-of-the-box support for more than 3 bands would be convenient.