-
-
Notifications
You must be signed in to change notification settings - Fork 364
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WCS 2.0.1 single band RangeSubset writes out 3-band GeoTIFF #5415
Comments
|
More information: 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. |
|
@jratike80 Is it necessary to add the PROCESSING "BANDS=1,2,3,4" directive for it to output the 4 bands? |
|
I added tests for this in #5566 hoping this was fixed recently as I can't reproduce. Please re-open if still valid. |
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.
http://localhost/cgi-bin/mapserv?map=wcs_demo_01.map&service=wcs&version=2.0.1&request=GetCoverage&coverageId=orthophotos&FORMAT=image/tiff&SUBSET=x(257000,258000)&SUBSET=y(6997000,6998000)&RangeSubset=BandA
Part of gdalinfo report from the "out.tif" file
Band 1 Block=2000x1 Type=Byte, ColorInterp=Red
Band 2 Block=2000x1 Type=Byte, ColorInterp=Green
Band 3 Block=2000x1 Type=Byte, ColorInterp=Blue
wcs_demo_01.txt
The text was updated successfully, but these errors were encountered: