Hi, I don't think that this is possible, neither in MapServer nor in WCS. I'd recommend to pre-process the files to only contain the needed bands. cu Stephan
On 06/14/2018 05:12 PM, Rousseau Lambert2, Louis-Philippe (EC) wrote: > Hi ! > > > I'm configuring a WCS web services with files that have many bands, like > 150. > > > The layer is only available in WCS and I would like to be able to > specify a default band to use. I tried the WMS way with the PROCESSING > "BANDS=1" but if I ask for the layer with a WCS 2.0.1 request, all > always get all the bands... > > > Here is the request I use: > > localhost:8080/mapserv?map=/some/path/wcs.map&SERVICE=WCS&VERSION=2.0.1&REQUEST=GetCoverage&COVERAGEID=layer_name&FORMAT=image/tiff&SUBSET=x(-160,-45)&SUBSET=y(25,85) > > > the result (from a 3 band layer) is always a 3 bands layer unless I > specify a band to use in my WCS request. I would like it to only give a > default band when I don't specify the RANGESUBSET... > > > Any idea on how to do, or I am doing something wrong ? > > > Thanks guys! > > > LP > > > Example mapfile: > > > MAP > NAME "test" > PROJECTION > "init=epsg:4326" > END > OUTPUTFORMAT > NAME GEOTIFF_16 > DRIVER "GDAL/GTiff" > MIMETYPE "image/tiff" > IMAGEMODE FLOAT32 > EXTENSION "tif" > END > EXTENT -180 -90 180 90 > SIZE 500 300 > WEB > METADATA > "ows_enable_request" "*" > "ows_title" "My Web Services" > "wcs_label" "test for cccs" > END > END > > LAYER > NAME "layer_name" > STATUS ON > TYPE RASTER > DUMP TRUE > TEMPLATE "ttt.html" > PROJECTION > "init=epsg:4326" > "lon_wrap=180" > END > DATA '/data/geomet/afsslor/cccs/cmip5/test.tif' > PROCESSING "BANDS=1" > METADATA > "ows_title" "test" > "ows_include_items" "all" > "wms_enable_request" "!*" > "wcs_enable_request" "*" > "wcs_label" "test for cccs" > "wcs_size" "360 180" > "wcs_extent" "-180 -90 180 90" > "wcs_imagemode" "FLOAT32" > "wcs_bandcount" "3" > "wcs_band_names" "BandA BandB BandC" > #default values > "wcs_band_interpretation" "This is default interpretation" > "wcs_band_uom" "DefaultUOM" > "wcs_band_definition" "DefaultDefinition" > "wcs_band_description" "This is default description" > "wcs_interval" "195 310" > "wcs_significant_figures" "3" > END > END > END > > > > _______________________________________________ > mapserver-users mailing list > [email protected] > https://lists.osgeo.org/mailman/listinfo/mapserver-users >
signature.asc
Description: OpenPGP digital signature
_______________________________________________ mapserver-users mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/mapserver-users
