[MapServer-users] WCS 2.0.1 GetCoverage request results in corrupted geotiff

Bakker, Anton Anton.Bakker at kadaster.nl
Thu Sep 1 06:42:48 PDT 2022


Hi Jukka,

Thanks for your suggestion, in the end I managed to resolve the issue.

The corrupted geotiff was not produced by MapServer, but by a Bash script I wrote 🤦‍♂️ 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...

In any case we will not be needing the Bash script anymore to split the multipart response. Since I managed to solve the issue<https://github.com/MapServer/MapServer/issues/6551> that our MapServer setup is returning multipart responses for WCS 2.0.1 GetCoverage requests.

Cheers,
Anton

________________________________
From: Rahkonen Jukka <jukka.rahkonen at maanmittauslaitos.fi>
Sent: 27 August 2022 00:58
To: Bakker, Anton <Anton.Bakker at kadaster.nl>; mapserver-users at lists.osgeo.org <mapserver-users at lists.osgeo.org>
Subject: Re: WCS 2.0.1 GetCoverage request results in corrupted geotiff

Deze e-mail is afkomstig van buiten de organisatie

Hi,



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 https://github.com/PDOK/mapserver-docker/. But you seem to be one of the contributors yourself https://github.com/PDOK/mapserver-docker/graphs/contributors. Generally speaking, if one Docker works while another one does not I think I would start by studying how they differ.



-Jukka Rahkonen-





Lähettäjä: MapServer-users <mapserver-users-bounces at lists.osgeo.org> Puolesta Bakker, Anton via MapServer-users
Lähetetty: perjantai 26. elokuuta 2022 19.20
Vastaanottaja: mapserver-users at lists.osgeo.org
Aihe: [MapServer-users] WCS 2.0.1 GetCoverage request results in corrupted geotiff



Hi all,



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 https://hub.docker.com/r/pdok/mapserver<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> Docker image. I could not reproduce the behaviour with https://hub.docker.com/r/camptocamp/mapserver/<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> Docker image.

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.



I detailed the full issue description and steps to reproduce in this gist<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>.  If anyone has any suggestions or ideas what might be causing it I would be grateful for a response.

Kind regards,



[https://github.githubassets.com/images/modules/gists/gist-og-image.png]<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>

MapServer WCS 2.0.1 GetCoverage request results in corrupt geotiff<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>

MapServer WCS 2.0.1 GetCoverage request results in corrupt geotiff - README.md

gist.github.com





​Anton Bakker


Disclaimer:
De inhoud van deze e-mail is vertrouwelijk en uitsluitend bestemd voor de geadresseerde(n).
Gebruik, openbaarmaking, vermenigvuldiging, verspreiding en/of verstrekking van deze informatie aan derden is niet toegestaan.
Op al onze producten en diensten zijn onze algemene leveringsvoorwaarden van toepassing
[https://www.kadaster.nl/algemene-leveringsvoorwaarden].

Disclaimer:
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.
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.
Our general terms and conditions of delivery apply to all our products and services
[https://www.kadaster.com/general-terms-and-conditions].


Disclaimer:
De inhoud van deze e-mail is vertrouwelijk en uitsluitend bestemd voor de geadresseerde(n).
Gebruik, openbaarmaking, vermenigvuldiging, verspreiding en/of verstrekking van deze informatie aan derden is niet toegestaan.
Op al onze producten en diensten zijn onze algemene leveringsvoorwaarden van toepassing
[https://www.kadaster.nl/algemene-leveringsvoorwaarden].

Disclaimer:
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.
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.
Our general terms and conditions of delivery apply to all our products and services
[https://www.kadaster.com/general-terms-and-conditions].
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20220901/8707b3bc/attachment-0001.htm>


More information about the MapServer-users mailing list