<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Hello,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<div class="flex flex-grow flex-col gap-3">
<div class="min-h-[20px] flex flex-col items-start gap-3 overflow-x-auto whitespace-pre-wrap break-words">
<div class="markdown prose w-full break-words dark:prose-invert light">
<p class="ContentPasted0">Regarding the topic discussed in <a href="https://marc.info/?l=mapserver-users&m=169049275409489&w=2" target="_new" id="OWA22be7c35-6a80-dc5b-a7ae-160833b7a3e9" class="OWAAutoLink ContentPasted0">
https://marc.info/?l=mapserver-users&m=169049275409489&w=2</a>, I have implemented Jukka's suggestions. I created two new attributes, "start" and "stop." Here's the improved mapfile:</p>
<div class="ContentPasted0" style="margin-top: 0px; margin-bottom: 0px;"><a href="https://pastecode.io/s/myjemd1r" id="LPlnk498777" class="OWAAutoLink">https://pastecode.io/s/myjemd1r</a><br>
</div>
<div class="ContentPasted0" style="margin-top: 0px; margin-bottom: 0px;">As you can see, there are 4 layers served from two tile indexes. The first layer consists of preprocessed OCGs with burned NoData, while the remaining three are served through VRT targeting
 different spatial resolutions depending on the requested zoom level, with the alpha channel set as a cloud mask. Here's an example of such a VRT (the others are similar):<br>
<a href="https://pastecode.io/s/af2tiwsj" id="LPlnk984081" class="OWAAutoLink">https://pastecode.io/s/af2tiwsj</a><br>
<br>
</div>
<p class="ContentPasted0">What is the problem?</p>
<ol data-listchain="__List_Chain_55">
<li class="ContentPasted0">When I try to create a cloudless mosaic using this request for data stored in COGs for a single day and there is data available for the requested area, the raster is returned. However, instead of transparent NoData, a value of 0 is
 burned in the place of transparent NoData, and I need NoData transparency (it's a must-have).
<div class="ContentPasted0" style=""><br>
</div>
<div class="ContentPasted0 ContentPasted1" style=""><a href="http://localhost/cgi-bin/mapserv?map=/var/www/mapbender/piramida_cloudless2.map&service=WCS&version=1.0.0&request=GetCoverage&coverage=test3&BBOX=3180020.455126192886,5542878.218003957532,3184499.682433307637,5548362.511879335158&CRS=EPSG:3857&WIDTH=771&HEIGHT=944&FORMAT=GTiff&start=2023-07-01&stop=2023-07-01" id="LPlnk532669" class="OWAAutoLink">http://localhost/cgi-bin/mapserv?map=/var/www/mapbender/piramida_cloudless2.map&service=WCS&version=1.0.0&request=GetCoverage&coverage=test3&BBOX=3180020.455126192886,5542878.218003957532,3184499.682433307637,5548362.511879335158&CRS=EPSG:3857&WIDTH=771&HEIGHT=944&FORMAT=GTiff&start=2023-07-01&stop=2023-07-01</a></div>
<div class="ContentPasted0 ContentPasted1" style=""><br>
</div>
</li><li class="ContentPasted0">When I try to create a cloudless mosaic using this request for data stored in COGs for multiple days(!), a black tile filled with values of 0 is returned. This happens because there were no S2 revisions over that area for those days,
 except for 2023-07-01, but data from that day were covered with NoData from other days - this is an undesired effect :(
<div class="ContentPasted0" style=""><br class="ContentPasted2">
<div><a href="http://localhost/cgi-bin/mapserv?map=/var/www/mapbender/piramida_cloudless2.map&service=WCS&version=1.0.0&request=GetCoverage&coverage=test3&BBOX=3180020.455126192886,5542878.218003957532,3184499.682433307637,5548362.511879335158&CRS=EPSG:3857&WIDTH=771&HEIGHT=944&FORMAT=GTiff&start=2023-07-01&stop=2023-07-01" id="OWA331c2733-be40-1a8d-2f4d-c11e439e8916" class="OWAAutoLink ContentPasted2" data-loopstyle="linkonly">http://localhost/cgi-bin/mapserv?map=/var/www/mapbender/piramida_cloudless2.map&service=WCS&version=1.0.0&request=GetCoverage&coverage=test3&BBOX=3180020.455126192886,5542878.218003957532,3184499.682433307637,5548362.511879335158&CRS=EPSG:3857&WIDTH=771&HEIGHT=944&FORMAT=GTiff&start=2023-07-01&stop=2023-07-0</a>5<br>
</div>
</div>
<div class="ContentPasted0" style=""><br>
</div>
</li><li class="ContentPasted0 ContentPasted3">When I try to request data stored in VRT for a single day using this request, data is returned, but the alpha channel is not taken into account, so once again, transparency information is omitted.<br>
<br>
<div><a href="http://localhost/cgi-bin/mapserv?map=/var/www/mapbender/piramida_cloudless2.map&service=WCS&version=1.0.0&request=GetCoverage&coverage=test&BBOX=3180020.455126192886,5542878.218003957532,3184499.682433307637,5548362.511879335158&CRS=EPSG:3857&WIDTH=771&HEIGHT=944&FORMAT=GTiff&start=2023-07-01&stop=2023-07-0" id="OWAc59a439a-8173-1b17-c31f-c3c7a2148614" class="OWAAutoLink ContentPasted2 ContentPasted3" data-loopstyle="linkonly">http://localhost/cgi-bin/mapserv?map=/var/www/mapbender/piramida_cloudless2.map&service=WCS&version=1.0.0&request=GetCoverage&coverage=test&BBOX=3180020.455126192886,5542878.218003957532,3184499.682433307637,5548362.511879335158&CRS=EPSG:3857&WIDTH=771&HEIGHT=944&FORMAT=GTiff&start=2023-07-01&stop=2023-07-0</a>1</div>
</li></ol>
<div><br>
</div>
<div class="ContentPasted4 ContentPasted5">also, WCS seems to ignore MAXSCALEDENOM and MINSCALEDENOM
<span id="🙂">🙂</span><br>
</div>
<div class="ContentPasted4 ContentPasted5"><br>
</div>
<p class="ContentPasted0">Last time, I received a lot of good advice that greatly pushed and improved my service. This time, I hope my message will initiate an interesting discussion.</p>
<p class="ContentPasted0"><br>
</p>
<p class="ContentPasted0">Best,</p>
<div>Marcin</div>
<br>
<p></p>
</div>
</div>
</div>
<br>
</div>
<div class="elementToProof">
<div id="Signature">
<div>
<table style="margin-top:30px;margin-bottom:30px;width:95%">
<tbody>
<tr height="45">
<td><br>
</td>
</tr>
<tr>
<td><br>
</td>
</tr>
<tr>
<td><br>
</td>
</tr>
<tr>
<td><span><map><area target="_blank" alt="Twitter" title="Twitter" href="https://twitter.com/CloudFerro" coords="602,96,621,117" shape="rect"><area target="_blank" alt="Facebook" title="Facebook" href="https://www.facebook.com/cloudferro/" coords="629,98,650,117" shape="rect"><area target="_blank" alt="Linkedin" title="Linkedin" href="https://www.linkedin.com/company/clfr/" coords="658,98,678,117" shape="rect"></map></span></td>
</tr>
</tbody>
</table>
<table id="pbpsiglinktable">
<tbody>
<tr>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</body>
</html>