<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML-esimuotoiltu Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTML-esimuotoiltuChar
        {mso-style-name:"HTML-esimuotoiltu Char";
        mso-style-priority:99;
        mso-style-link:HTML-esimuotoiltu;
        font-family:Consolas;}
span.Shkpostityyli20
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 2.0cm 70.85pt 2.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor="white" lang="FI" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">I would like to say that you should not waste your time with using QGIS as a WCS client because it is rather useless for
 that. It tries to use WCS as a poor substitute for WMS as you can see from your example query that includes &WIDTH=6&HEIGHT=3.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">I suggest to switch to WCS 2.0.1, write your requests by hand and send them with curl, wget, or browser.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Here is an example about WCS 2.0.1 GetCoverage query syntax with time dimension<br>
<a href="https://beta-karttakuva.maanmittauslaitos.fi/wcs/service/ows?service=WCS&version=2.0.1&request=GetCoverage&CoverageID=ortokuva__ortokuva&SUBSET=E(393450,393650)&SUBSET=N(7495450,7495650)&format=image/tiff&SUBSET=time(%222010-12-31T00:00:00.000Z%22)">https://beta-karttakuva.maanmittauslaitos.fi/wcs/service/ows?service=WCS&version=2.0.1&request=GetCoverage&CoverageID=ortokuva__ortokuva&SUBSET=E(393450,393650)&SUBSET=N(7495450,7495650)&format=image/tiff&SUBSET=time(%222010-12-31T00:00:00.000Z%22)</a><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">-Jukka Rahkonen-<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif">Lähettäjä:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif"> mapserver-users [mailto:mapserver-users-bounces@lists.osgeo.org]
<b>Puolesta </b>Rousseau Lambert2, Louis-Philippe (EC)<br>
<b>Lähetetty:</b> 28. kesäkuuta 2018 16:20<br>
<b>Vastaanottaja:</b> mapserver-users@lists.osgeo.org<br>
<b>Aihe:</b> [mapserver-users] time enabled WCS with tile index<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:black">Hi guys,
<o:p></o:p></span></p>
<p><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:black"><o:p> </o:p></span></p>
<p><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:black">I'm working on a project which requires WMS and WCS time enabled layers.
<o:p></o:p></span></p>
<p><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:black"><o:p> </o:p></span></p>
<p><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:black">I'm using the tile index for time support, which is working fine for WMS but I can't get the time to work for WCS request...<o:p></o:p></span></p>
<p><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:black"><o:p> </o:p></span></p>
<p><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:black">In my shapefile I have a column for the data path and one (timestamp) for the time.
<o:p></o:p></span></p>
<p><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:black"><o:p> </o:p></span></p>
<p><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:black">Exemple request form Qgis WCS: <o:p></o:p></span></p>
<p><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:black">mapserv -nh "QUERY_STRING=map=/path/to/mapfile/WCS-en.map&SERVICE=WCS&VERSION=1.0.0&REQUEST=GetCoverage&FORMAT=GTiff&COVERAGE=DCS.TN.HISTO.YEAR.ABS_PCTL25&TIME=1978&BBOX=-96.74998463567416707,62.12500003000000248,-96.2499848643258531,62.37499996999999752&CRS=EPSG:4326&RESPONSE_CRS=EPSG:4326&WIDTH=6&HEIGHT=3"
 > dcs.tif<o:p></o:p></span></p>
<p><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:black"><o:p> </o:p></span></p>
<p><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:black">I get an error:
<o:p></o:p></span></p>
<p><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:black"> <?xml version='1.0' encoding="UTF-8" ?>                                                                                                                 <ServiceExceptionReport version="1.2.0"                                                                                                                
 xmlns="</span><a href="http://www.opengis.net/ogc"><span lang="EN-US" style="font-family:"Calibri",sans-serif">http://www.opengis.net/ogc</span></a><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:black">" xmlns:xsi="</span><a href="http://www.w3.org/2001/XMLSchema-instance"><span lang="EN-US" style="font-family:"Calibri",sans-serif">http://www.w3.org/2001/XMLSchema-instance</span></a><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:black">"
 xsi:schemaLocation="</span><a href="http://www.opengis.net/ogc%20http:/schemas.o%0bpengis.net/wcs/1.0.0/OGC-exception.xsd"><span lang="EN-US" style="font-family:"Calibri",sans-serif">http://www.opengis.net/ogc http://schemas.o<br>
pengis.net/wcs/1.0.0/OGC-exception.xsd</span></a><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:black">"><br>
  <ServiceException>msGetGDALBandList(): Image handling error. BANDS PROCESSING directive has wrong number of bands, expected at most 4, got 55.<br>
  </ServiceException><br>
</ServiceExceptionReport><o:p></o:p></span></p>
<p><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:black"><o:p> </o:p></span></p>
<p><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:black">At the base I have one netcdf file with 55 bands each representing a different time step. In order to use the shapefile index, I created 55 VRTs each pointing to a band in the original
 NetCDF. Than in the shapefile index, I'm pointing to those VRT for each time step. It works fine for WMS but not WCS...
<o:p></o:p></span></p>
<p><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:black"><o:p> </o:p></span></p>
<p><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:black">Here is my mapfile:
<o:p></o:p></span></p>
<pre><span lang="EN-US" style="color:black">MAP<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">    STATUS ON<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">    WEB<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">        METADATA<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">            "wcs_description" "The weather can have an incredible influence on our daily lives. It affects the growth of crops and the availability of water. It dictates which regions of the world are habitable or uninhabitable"<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">            "ows_extent" "-141,42,-52,84"<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">            "ows_contactinstructions" "During hours of service"<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">            "wcs_label" "Meteorological Service of Canada Geospatial Web Services 0.1.0"<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">            "ows_title" "title"<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">            "wcs_enable_request" "*"<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">        END<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">    END<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">    PROJECTION<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">        "init=epsg:4326"<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">    END<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">    NAME "climate"<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">    QUERYMAP<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">        STATUS OFF<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">        COLOR 255 255 0<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">        STYLE HILITE<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">        SIZE 500 300<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">    END<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">    LAYER<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">        STATUS OFF<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">        NAME "DCS.TN.HISTO.YEAR.ABS_PCTL25-tileindex"<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">        DATA "/path/to/tileindex/ts_absolute_p25_historical_1951_2005_tn_ann.shp"<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">        TYPE POLYGON<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">        FILTERITEM 'timestamp'<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">        FILTER '%timestamp%'<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">        METADATA<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">            "ows_enable_request" "!*"<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">        END<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">    END<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">    LAYER<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">        STATUS ON<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">        TILEITEM "location"<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">        NAME "DCS.TN.HISTO.YEAR.ABS_PCTL25"<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">        DUMP TRUE<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">        TILEINDEX "DCS.TN.HISTO.YEAR.ABS_PCTL25-tileindex"<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">        CLASS<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">            GROUP "TEMP-ABSOLUTE"<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">            STYLE<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">                DATARANGE -60 -28<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">                COLORRANGE 10 40 100 51 102 217<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">            END<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">            EXPRESSION ([pixel] < -28 AND [pixel] > -95)<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">            NAME "< -28"<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">        END<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">        TEMPLATE "ttt.html"<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">        CLASSGROUP "TEMP-ABSOLUTE"<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">        METADATA<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">            "ows_timeextent" "1951/2005/P1Y"<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">            "wcs_timeposition" '1951,1952,1953,1954,1955,1956,1957,1958,1959,1960,1961,1962,1963,1964,1965,1966,1967,1968,1969,1970,1971,1972,1973,1974,1975,1976,1977,1978,1979,1980,1981,1982,1983,1984,1985,1986,1987,1988,1989,1990,1991,1992,1993,1994,1995,1996,1997,1998,1999,2000,2001,2002,2003,2004,2005'<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">            "wcs_band_names" "B1951 B1952 B1953 B1954 B1955 B1956 B1957 B1958 B1959 B1960 B1961 B1962 B1963 B1964 B1965 B1966 B1967 B1968 B1969 B1970 B1971 B1972 B1973 B1974 B1975 B1976 B1977 B1978 B1979 B1980 B1981 B1982 B1983 B1984 B1985 B1986 B1987 B1988 B1989 B1990 B1991 B1992 B1993 B1994 B1995 B1996 B1997 B1998 B1999 B2000 B2001 B2002 B2003 B2004 B2005"<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">            "wms_timeitem" "timestamp"<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">            "wcs_timeitem" "timestamp"<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">            "ows_extent" "-140.9999644 41.0000051 -52.0000051 83.4999949"<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">            "ows_title" "title"<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">            "wms_timedefault" "2005"<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">            "ows_enable_request" "*"<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">            "ows_layer_group" "//Downscale climate scenarios (DCS)/Maximum temperature/Historical/Annual"<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">            "wcs_label" "Mean temperature"<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">            "wcs_resolution" "0.083333295198278 -0.083333313348017"<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">            "wcs_size" "1068 510"<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">            "wcs_bandcount" "55"<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black"><o:p> </o:p></span></pre>
<pre><span lang="EN-US" style="color:black">        END<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">        TYPE RASTER<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">        PROJECTION<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">            "+proj=longlat +datum=WGS84 +no_defs "<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">        END<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">    END<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">    IMAGECOLOR 255 255 255<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">    MAXSIZE 4096<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">    OUTPUTFORMAT<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">        MIMETYPE "image/tiff"<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">        NAME "GEOTIFF_32"<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">        EXTENSION "tif"<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">        DRIVER "GDAL/GTiff"<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">        IMAGEMODE FLOAT32<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">    END<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">    END<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">    EXTENT -141 42 -52 84<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">    DEBUG OFF<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">    TRANSPARENT ON<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">    IMAGETYPE "PNG"<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">    SIZE 500 300<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">END<o:p></o:p></span></pre>
<p><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:black">Thanks for the help!<o:p></o:p></span></p>
<p><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:black"><o:p> </o:p></span></p>
<p><span style="font-family:"Calibri",sans-serif;color:black">LP<o:p></o:p></span></p>
<p><span style="font-family:"Calibri",sans-serif;color:black"><o:p> </o:p></span></p>
<p><span style="font-family:"Calibri",sans-serif;color:black"><o:p> </o:p></span></p>
</div>
</body>
</html>