You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
This happens with the default GeoTIFF driver. The default driver has also another unwanted feature: it writes a RGB output from multi-band source like RGB-NIR 4-band imagery. It feels like the default IMAGEMODE is RGB even it is documented to be FLOAT32, and that the "wcs_imagemode" metadata item does not have any effect on the default image/tiff outputformat.
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.