<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, Helvetica, sans-serif; font-size: 10pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
Hi Jukka,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 10pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 10pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
Thanks for your suggestion, in the end I managed to resolve the issue. <br>
<br>
The corrupted geotiff was not produced by MapServer, but by a Bash script I wrote
<span id="🤦‍♂️">🤦‍♂️</span> which I used to convert the multipart response from the WCS 2.0.1 GetCoverage request. It worked in the docker-compose setup presumably due to a different version of Bash compared with the docker setup in which the script was run
on my local machine... <br>
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 10pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
In any case we will not be needing the Bash script anymore to split the multipart response. Since I managed to solve
<a href="https://github.com/MapServer/MapServer/issues/6551" title="https://github.com/MapServer/MapServer/issues/6551">
the issue</a> that our MapServer setup is returning multipart responses for WCS 2.0.1 GetCoverage requests.<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 10pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
<br>
Cheers,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 10pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
Anton<br>
</div>
<div id="signature_bookmark"></div>
<div id="appendonsend"></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size: 11pt;" face="Calibri, sans-serif" color="#000000"><b>From:</b> Rahkonen Jukka <jukka.rahkonen@maanmittauslaitos.fi><br>
<b>Sent:</b> 27 August 2022 00:58<br>
<b>To:</b> Bakker, Anton <Anton.Bakker@kadaster.nl>; mapserver-users@lists.osgeo.org <mapserver-users@lists.osgeo.org><br>
<b>Subject:</b> Re: WCS 2.0.1 GetCoverage request results in corrupted geotiff</font>
<div> </div>
</div>
<div style="word-wrap:break-word" lang="FI"><span style="font-size: 13px; font-family: Tahoma; color: black; background-color: rgb(240, 240, 240);">Deze e-mail is afkomstig van buiten de organisatie</span>
<div class="x_WordSection1">
<p class="x_MsoNormal" style="margin: 0cm; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="">Hi,</span></p>
<p class="x_MsoNormal" style="margin: 0cm; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style=""> </span></p>
<p class="x_MsoNormal" style="margin: 0cm; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="" lang="EN-US">Your question is exceptionally detailed but because the issue happens only with a certain Docker image maybe you should contact the authors of the image
</span><span style=""><a href="https://github.com/PDOK/mapserver-docker/" data-auth="NotApplicable"><span lang="EN-US">https://github.com/PDOK/mapserver-docker/</span></a></span><span style="" lang="EN-US">. But you seem to be one of the contributors yourself
<a href="https://github.com/PDOK/mapserver-docker/graphs/contributors" data-auth="NotApplicable">
https://github.com/PDOK/mapserver-docker/graphs/contributors</a>. Generally speaking, if one Docker works while another one does not I think I would start by studying how they differ.
</span></p>
<p class="x_MsoNormal" style="margin: 0cm; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="" lang="EN-US"> </span></p>
<p class="x_MsoNormal" style="margin: 0cm; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="" lang="EN-US">-Jukka Rahkonen-</span></p>
<p class="x_MsoNormal" style="margin: 0cm; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="" lang="EN-US"> </span></p>
<p class="x_MsoNormal" style="margin: 0cm; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="" lang="EN-US"> </span></p>
<div>
<div style="border:none; border-top:solid #E1E1E1 1.0pt; padding:3.0pt 0cm 0cm 0cm">
<p class="x_MsoNormal" style="margin: 0cm; font-size: 11pt; font-family: "Calibri", sans-serif;">
<b>Lähettäjä:</b> MapServer-users <mapserver-users-bounces@lists.osgeo.org> <b>Puolesta
</b>Bakker, Anton via MapServer-users<br>
<b>Lähetetty:</b> perjantai 26. elokuuta 2022 19.20<br>
<b>Vastaanottaja:</b> mapserver-users@lists.osgeo.org<br>
<b>Aihe:</b> [MapServer-users] WCS 2.0.1 GetCoverage request results in corrupted geotiff</p>
</div>
</div>
<p class="x_MsoNormal" style="margin: 0cm; font-size: 11pt; font-family: "Calibri", sans-serif;">
</p>
<div>
<p class="x_MsoNormal" style="margin: 0cm; font-size: 11pt; font-family: "Calibri", sans-serif; background: white none repeat scroll 0% 0%;">
<span style="font-size: 10pt; color: black;">Hi all,</span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0cm; font-size: 11pt; font-family: "Calibri", sans-serif; background: white none repeat scroll 0% 0%;">
<span style="font-size: 10pt; color: black;"> </span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0cm; font-size: 11pt; font-family: "Calibri", sans-serif; background: white none repeat scroll 0% 0%;">
<span style="font-size: 10pt; color: black;">I am running into a curious issue in which WCS 2.0.1 getcoverage requests produces a corrupted geotiff (which is bad) and WCS 1.0.0 getcoverage requests produce valid geotiffs (which is good). This behaviour occurs
with our <a href="https://eur06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fhub.docker.com%2Fr%2Fpdok%2Fmapserver&data=05%7C01%7Cjukka.rahkonen%40maanmittauslaitos.fi%7C8c5cd02a7bd44282578908da877fd14d%7Cc4f8a63255804a1c92371d5a571b71fa%7C0%7C0%7C637971280290882891%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Q0s0yCgZuksu7M6TBPSUQ8uu8jKgKVw%2F0b17z4DXKKU%3D&reserved=0" data-auth="NotApplicable">https://hub.docker.com/r/pdok/mapserver</a>
Docker image. I could not reproduce the behaviour with <a href="https://eur06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fhub.docker.com%2Fr%2Fcamptocamp%2Fmapserver%2F&data=05%7C01%7Cjukka.rahkonen%40maanmittauslaitos.fi%7C8c5cd02a7bd44282578908da877fd14d%7Cc4f8a63255804a1c92371d5a571b71fa%7C0%7C0%7C637971280291039128%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=fWyRMTs5BbWDGVGFqS%2FnDUFTx2gZrP3qVW6%2BS2V9rSA%3D&reserved=0" data-auth="NotApplicable">
https://hub.docker.com/r/camptocamp/mapserver/</a> Docker image. <br>
<br>
On top of that; I can only reproduce this issue when running with docker. When running the same example with docker-compose it works fine.
</span></p>
</div>
<p class="x_MsoNormal" style="margin: 0cm; font-size: 11pt; font-family: "Calibri", sans-serif;">
</p>
<div>
<p class="x_MsoNormal" style="margin: 0cm; font-size: 11pt; font-family: "Calibri", sans-serif; background: white none repeat scroll 0% 0%;">
<span style="font-size: 10pt; color: black;">I detailed the full issue description and steps to reproduce in this
<a href="https://eur06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgist.github.com%2Farbakker%2F889b10d839573c4cebb983ff19b17e94&data=05%7C01%7Cjukka.rahkonen%40maanmittauslaitos.fi%7C8c5cd02a7bd44282578908da877fd14d%7Cc4f8a63255804a1c92371d5a571b71fa%7C0%7C0%7C637971280291039128%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=U8TUOBs16nkC0D3ni7nkb53L5U3h0q2K4SoKu2rG7EM%3D&reserved=0" data-auth="NotApplicable" title="https://gist.github.com/arbakker/889b10d839573c4cebb983ff19b17e94">
gist</a>. If anyone has any suggestions or ideas what might be causing it I would be grateful for a response.
<br>
<br>
Kind regards,</span></p>
</div>
<p class="x_MsoNormal" style="margin: 0cm; font-size: 11pt; font-family: "Calibri", sans-serif;">
</p>
<div>
<div id="LPBorder_GTaHR0cHM6Ly9naXN0LmdpdGh1Yi5jb20vYXJiYWtrZXIvODg5YjEwZDgzOTU3M2M0Y2ViYjk4M2ZmMTliMTdlOTQ." style="margin-top:12.0pt; margin-bottom:12.0pt; min-width:424px">
<table class="x_MsoNormalTable" style="width:100.0%; border:solid #C8C8C8 1.0pt" width="100%" cellspacing="3" cellpadding="0" border="1">
<tbody>
<tr>
<td style="border:none; padding:9.0pt 27.0pt 9.0pt 9.0pt" valign="top">
<div id="LPImageContainer296133" style="margin-right:9.0pt; overflow:hidden">
<p class="x_MsoNormal" style="margin: 0cm; font-size: 11pt; font-family: "Calibri", sans-serif;">
<a href="https://eur06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgist.github.com%2Farbakker%2F889b10d839573c4cebb983ff19b17e94&data=05%7C01%7Cjukka.rahkonen%40maanmittauslaitos.fi%7C8c5cd02a7bd44282578908da877fd14d%7Cc4f8a63255804a1c92371d5a571b71fa%7C0%7C0%7C637971280291039128%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=U8TUOBs16nkC0D3ni7nkb53L5U3h0q2K4SoKu2rG7EM%3D&reserved=0" data-auth="NotApplicable"><span style="text-decoration:none"><img id="x__x0000_i1025" style="width:2.5069in; height:1.25in" width="241" height="120" border="0" src="https://github.githubassets.com/images/modules/gists/gist-og-image.png"></span></a></p>
</div>
</td>
<td style="width:100.0%; border:none; padding:9.0pt 27.0pt 9.0pt 9.0pt" width="100%" valign="top">
<div id="LPTitle296133" style="margin-right:6.0pt; margin-bottom:9.0pt">
<p class="x_MsoNormal" style="margin: 0cm; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-size:16.0pt; font-family:"Segoe UI Light",sans-serif"><a href="https://eur06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgist.github.com%2Farbakker%2F889b10d839573c4cebb983ff19b17e94&data=05%7C01%7Cjukka.rahkonen%40maanmittauslaitos.fi%7C8c5cd02a7bd44282578908da877fd14d%7Cc4f8a63255804a1c92371d5a571b71fa%7C0%7C0%7C637971280291039128%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=U8TUOBs16nkC0D3ni7nkb53L5U3h0q2K4SoKu2rG7EM%3D&reserved=0" data-auth="NotApplicable"><span style="text-decoration:none">MapServer
WCS 2.0.1 GetCoverage request results in corrupt geotiff</span></a></span></p>
</div>
<div id="LPDescription296133" style="margin-right:6.0pt; margin-bottom:9.0pt; max-height:100px; overflow:hidden">
<p class="x_MsoNormal" style="margin: 0cm; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-size: 10.5pt; font-family: "Segoe UI", sans-serif; color: rgb(102, 102, 102);">MapServer WCS 2.0.1 GetCoverage request results in corrupt geotiff - README.md</span></p>
</div>
<div id="LPMetadata296133">
<p class="x_MsoNormal" style="margin: 0cm; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-size: 10.5pt; font-family: "Segoe UI", sans-serif; color: rgb(166, 166, 166);">gist.github.com</span></p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<p class="x_MsoNormal" style="margin: 0cm; font-size: 11pt; font-family: "Calibri", sans-serif;margin-bottom:12.0pt">
</p>
<div>
<div>
<p class="x_MsoNormal" style="margin: 0cm; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-size: 10pt; color: black;"> </span></p>
</div>
<div id="x_Signature">
<div>
<div>
<p class="x_MsoNormal" style="margin: 0cm; font-size: 11pt; font-family: "Calibri", sans-serif;">
<b><span style="color: rgb(0, 115, 149);">​Anton Bakker</span></b><span style="font-size:12.0pt"></span></p>
</div>
</div>
</div>
</div>
<p class="x_MsoNormal" style="margin: 0cm; font-size: 11pt; font-family: "Calibri", sans-serif;">
<br>
<br>
<span style="font-size:10.0pt">Disclaimer:<br>
De inhoud van deze e-mail is vertrouwelijk en uitsluitend bestemd voor de geadresseerde(n).<br>
Gebruik, openbaarmaking, vermenigvuldiging, verspreiding en/of verstrekking van deze informatie aan derden is niet toegestaan.<br>
Op al onze producten en diensten zijn onze algemene leveringsvoorwaarden van toepassing<br>
[https://www.kadaster.nl/algemene-leveringsvoorwaarden].<br>
<br>
Disclaimer:<br>
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed.<br>
If you are not the intended recipient, you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.<br>
Our general terms and conditions of delivery apply to all our products and services<br>
[https://www.kadaster.com/general-terms-and-conditions]. </span></p>
</div>
</div>
<br>
<br>
<font size="2">Disclaimer:<br>
De inhoud van deze e-mail is vertrouwelijk en uitsluitend bestemd voor de geadresseerde(n).<br>
Gebruik, openbaarmaking, vermenigvuldiging, verspreiding en/of verstrekking van deze informatie aan derden is niet toegestaan.<br>
Op al onze producten en diensten zijn onze algemene leveringsvoorwaarden van toepassing<br>
[https://www.kadaster.nl/algemene-leveringsvoorwaarden].<br>
<br>
Disclaimer:<br>
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed.<br>
If you are not the intended recipient, you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.<br>
Our general terms and conditions of delivery apply to all our products and services<br>
[https://www.kadaster.com/general-terms-and-conditions]. <br>
</font>
</body>
</html>