<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!--P{margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hi !</p>
<p><br>
</p>
<p>I'm configuring a WCS web services with files that have many bands, like 150. </p>
<p><br>
</p>
<p>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...
</p>
<p><br>
</p>
<p>Here is the request I use: </p>
<p>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)</p>
<p><br>
</p>
<p>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...
</p>
<p><br>
</p>
<p>Any idea on how to do, or I am doing something wrong ?</p>
<p><br>
</p>
<p>Thanks guys!</p>
<p><br>
</p>
<p>LP<br>
</p>
<p><br>
</p>
<p>Example mapfile:</p>
<p><br>
MAP<br>
 NAME "test"<br>
 PROJECTION<br>
  "init=epsg:4326"<br>
 END<br>
 OUTPUTFORMAT<br>
  NAME GEOTIFF_16<br>
  DRIVER "GDAL/GTiff"<br>
  MIMETYPE "image/tiff"<br>
  IMAGEMODE FLOAT32<br>
  EXTENSION "tif"<br>
 END<br>
 EXTENT -180 -90 180 90<br>
 SIZE 500 300<br>
 WEB<br>
  METADATA<br>
    "ows_enable_request" "*"<br>
    "ows_title" "My Web Services"<br>
    "wcs_label" "test for cccs"<br>
  END<br>
 END<br>
<br>
LAYER<br>
     NAME "layer_name"<br>
     STATUS ON<br>
     TYPE RASTER<br>
     DUMP TRUE<br>
     TEMPLATE "ttt.html"<br>
PROJECTION<br>
 "init=epsg:4326"<br>
 "lon_wrap=180"<br>
END<br>
     DATA '/data/geomet/afsslor/cccs/cmip5/test.tif'<br>
     PROCESSING "BANDS=1"<br>
     METADATA<br>
      "ows_title" "test"<br>
      "ows_include_items" "all"<br>
      "wms_enable_request" "!*"<br>
      "wcs_enable_request" "*"<br>
      "wcs_label" "test for cccs"<br>
      "wcs_size" "360 180"<br>
      "wcs_extent" "-180 -90 180 90"<br>
      "wcs_imagemode" "FLOAT32"<br>
      "wcs_bandcount" "3"<br>
      "wcs_band_names" "BandA BandB BandC"<br>
      #default values<br>
      "wcs_band_interpretation"   "This is default interpretation"<br>
      "wcs_band_uom"              "DefaultUOM"<br>
      "wcs_band_definition"       "DefaultDefinition"<br>
      "wcs_band_description"      "This is default description"<br>
      "wcs_interval"              "195 310"<br>
      "wcs_significant_figures"   "3"<br>
     END<br>
    END<br>
END<br>
<br>
</p>
</body>
</html>