<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 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:CDGCIJ+TimesNewRoman;
        panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"CDGEDG+TimesNewRoman\,Italic";
        panose-1:0 0 0 0 0 0 0 0 0 0;}
/* 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:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.Shkpostityyli18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
p.BodyText1, li.BodyText1, div.BodyText1
        {mso-style-name:"Body Text 1";
        mso-style-priority:99;
        margin:0cm;
        margin-bottom:.0001pt;
        text-autospace:none;
        font-size:12.0pt;
        font-family:"CDGCIJ+TimesNewRoman","serif";}
.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 lang="FI" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><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">I wonder where BBOX (-2.5,-2.5,2.5,2.5) comes. If Mapserver is generating it automatically then it feels like a bug.<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"><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">Your request does not contain BBOX at all and it is OK because it has TIME, and WCS 1.0.0 standard says  “One of BBOX or TIME is required”.  CRS
 is required but because there is no BBOX it should not have any effect on the result. Standard says here<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">“GetCoverage requests must use this parameter to specify the coordinate reference system in which the request domain constraints are expressed
 (BBOX). The values of this re-quest parameter must be one of those defined in a requestResponseCRSs or requestCRSs element under the requested coverage.” Thus you are allowed to use any CRS that your service supports and the result should be correct and identical.
 And your CRS list seems to be this:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">"wcs_srs" "EPSG:4326 EPSG:900913 EPSG:3857 EPSG:32615 EPSG:32616 EPSG:32617"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"CDGEDG+TimesNewRoman,Italic","serif";color:black">Do you get the same error also if you make the request with for example &CRC=900913?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"CDGEDG+TimesNewRoman,Italic","serif";color:black">I guess that your system is sometimes generating requests with EPSG:4326 BBOX and therefore you just that as a compulsory dummy CRS
 parameter with your bare TIME requests and therefore using the native EPSG:32626 is not a good workaround.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"CDGEDG+TimesNewRoman,Italic","serif";color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"CDGEDG+TimesNewRoman,Italic","serif";color:black">-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"><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"><o:p> </o:p></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt">
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">Lähettäjä:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> mapserver-users-bounces@lists.osgeo.org [mailto:mapserver-users-bounces@lists.osgeo.org]
<b>Puolesta </b>Peter Freimuth<br>
<b>Lähetetty:</b> 29. tammikuuta 2014 9:17<br>
<b>Vastaanottaja:</b> mapserver-users@lists.osgeo.org<br>
<b>Aihe:</b> [mapserver-users] wcs 1.0.0 bbox problem<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<div>
<p>Hi,<br>
executing the following request<br>
<a href="https://devcloud.blackbridge.com/wcs/PlenumsoftDemo?SERVICE=WCS&VERSION=1.0.0&REQUEST=GetCoverage&COVERAGE=testdata_raw&FORMAT=GEOTIFF_INT16&RESX=5&RESY=5&RESPONSE_CRS=EPSG:32616&CRS=EPSG:4326&TIME=2012-04-05">https://devcloud.blackbridge.com/wcs/PlenumsoftDemo?SERVICE=WCS&VERSION=1.0.0&REQUEST=GetCoverage&COVERAGE=testdata_raw&FORMAT=GEOTIFF_INT16&RESX=5&RESY=5&RESPONSE_CRS=EPSG:32616&CRS=EPSG:4326&TIME=2012-04-05</a><o:p></o:p></p>
<p>results in <o:p></o:p></p>
<p><?xml version='1.0' encoding="ISO-8859-1" ?><br>
xmlns="<a href="http://www.opengis.net/ogc">http://www.opengis.net/ogc</a>" xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>" xsi:schemaLocation="<a href="http://www.opengis.net/ogc">http://www.opengis.net/ogc</a>
<a href="http://schemas.opengeospatial.net/wcs/1.0.0/OGC-exception.xsd">http://schemas.opengeospatial.net/wcs/1.0.0/OGC-exception.xsd</a>"><br>
msWCSGetCoverage(): WCS server error. Requested BBOX (-2.5,-2.5,2.5,2.5) is outside requested coverage BBOX (210500,2230500,261500,2281500)<br>
msProjectRect(): Projection library error. All points failed to reproject.<br>
msProjectPoint(): Projection library error. proj says: latitude or longitude exceeded limits<o:p></o:p></p>
<p>The corresponding layer d3efinition is:<o:p></o:p></p>
<p>MAP<br>
...<br>
LAYER<br>
# this is the tileindex that aggregates the single image products together and makes them accessible by date and extend<br>
NAME "data_raw_idx"<br>
STATUS ON<br>
<br>
DEBUG 5<br>
TYPE POLYGON<br>
DATA "/mnt/mapserver/mapserver_wms/Raster/Plenumosft_RE_Sample_forWCS/plenumsoft_demo_data"<br>
PROJECTION<br>
"init=epsg:32616"<br>
END<br>
VALIDATION<br>
# 'productid' '^([0-9])$'<br>
END<br>
#FILTER ( '[productid]'='%productid%')<br>
METADATA<br>
#'productid_validation_pattern' '^([0-9])$'<br>
#'default_productid' '1234567'<br>
#disable explicitly everything that shall not be supported for this Layer<br>
"wms_enable_request" "!GetCapabilities !GetMap !GetLegendgraphic"<br>
"wcs_enable_request" "!GetCapabilities !GetCoverage !DescribeCoverage"<br>
"wfs_enable_request" "!GetCapabilities !GetFeature !DescribeFeatureType"<br>
END<br>
END<br>
LAYER<br>
# this layer serves the 16bit raw data<br>
NAME "testdata_raw"<br>
STATUS ON<br>
<br>
DUMP TRUE<br>
DEBUG 5<br>
TYPE RASTER ### required<br>
PROJECTION<br>
"init=epsg:32616"<br>
END<br>
OFFSITE 0 0 0 <br>
UNITS meters<br>
TILEINDEX "data_raw_idx"<br>
TILEITEM "location"<br>
#MASK "mask2"<br>
METADATA<br>
"wcs_title" "5 band 16bit RE Testdata with time support"<br>
"wcs_extent" "210500.0 2230500.0 261500.0 2281500.0" # shall be set dynamically by the wrapper script on mapObj base<br>
"wcs_srs" "EPSG:4326 EPSG:900913 EPSG:3857 EPSG:32615 EPSG:32616 EPSG:32617"<br>
"wcs_label" "5 band 16bit RE Testdata" ### required<br>
"wcs_rangeset_axes" "bands"<br>
"wcs_rangeset_name" "Bands" ### required to support DescribeCoverage request<br>
"wcs_rangeset_label" "RE Radiometric Bands" ### required to support DescribeCoverage request<br>
"wcs_rangeset_nullvalue" "0"<br>
<br>
#"wcs_size" "15000 15000" #if we have a global ows_extent set in web-metadata and a wcs_resolution this gets calculated by mapserver<br>
"wcs_resolution" "5.0 5.0"<br>
"wcs_bandcount" "5"<br>
"wcs_band_names" "Blue Green Red Rededge Nir"<br>
"wcs_imagemode" "INT16"<br>
"wcs_formats" "GEOTIFF_INT16 AAIGRID"<br>
"wcs_native_format" "image/tiff"<br>
"wcs_nativeformat" "GTiff"<br>
"wcs_enable_request" "*"<br>
"wcs_timeposition" "2011-01-04,2011-04-20,2012-04-05" #this might get set by the mapscript wrapper accodingly to the dates avaialable for the service and is mandatory to allow temporal subsettings<br>
"wcs_timeextent" "2011-01-04/2012-04-05" # shall be set dynamically by the wrapper script on mapObj base<br>
"wcs_timeitem" "acquidate"<br>
#disable explicitly everything that shall not be supported for this Layer<br>
"wms_enable_request" "!GetCapabilities !GetMap !GetLegendgraphic"<br>
"wfs_enable_request" "!GetCapabilities !GetFeature !DescribeFeatureType"<br>
END<br>
CLASS<br>
NAME "5 Band (16bit) RE Imagedata"<br>
KEYIMAGE "drgs_keyimage.png"<br>
END<br>
END<br>
...<br>
END<o:p></o:p></p>
<p>If i use CRS=EPSG:32616 which is the epsg code of the layer itself, everything works fine. I would expect that mapserver would reproject the wcs_extent or layer_extent or map_extent to the given CRS and use that BBOX by default.<o:p></o:p></p>
</div>
</div>
</div>
<div>
<p class="MsoNormal">related to:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><a href="https://github.com/mapserver/mapserver/issues/4853">https://github.com/mapserver/mapserver/issues/4853</a><o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-family:"Helvetica","sans-serif";color:black">-- <br>
Peter Freimuth <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Helvetica","sans-serif";color:black"><o:p> </o:p></span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>