<div dir="ltr">Hi Jukka & Even,<div><br></div><div>I agree DGIWG profiles are not very consistent. I will live with this "limitation".</div><div>Whenever we get complaints about our WMS formats, I will argue with WMTS req #10.</div><div><br></div><div>Thanks</div><div>Philippe</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Sep 13, 2023 at 8:50 PM Rahkonen Jukka <<a href="mailto:jukka.rahkonen@maanmittauslaitos.fi">jukka.rahkonen@maanmittauslaitos.fi</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg-615019686449326788">





<div lang="FI" style="overflow-wrap: break-word;">
<div class="m_-615019686449326788WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hi,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Could DGWIG WMTS profile offer a workaround?<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">7.11 Tile File Formats<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Requirement 10: <u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">A DGIWG WMTS server SHALL support at least one of the following raster formats for the GetTile operation:<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">image/png (Portable Network Graphics)<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">image/gif (Graphics Interchange Format) <u></u>
<u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> image/jpeg (Joint Photographic Experts Group)<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">So no need to support all three as in the WMS profile.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">-Jukka Rahkonen-<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<div>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 0cm 0cm">
<p class="MsoNormal"><b>Lähettäjä:</b> MapServer-dev <<a href="mailto:mapserver-dev-bounces@lists.osgeo.org" target="_blank">mapserver-dev-bounces@lists.osgeo.org</a>>
<b>Puolesta </b>Even Rouault<br>
<b>Lähetetty:</b> keskiviikko 13. syyskuuta 2023 20.16<br>
<b>Vastaanottaja:</b> Philippe Ghesquiere <<a href="mailto:philippe.ghesquiere@airbus.com" target="_blank">philippe.ghesquiere@airbus.com</a>><br>
<b>Kopio:</b> MapServer Devs <<a href="mailto:MapServer-dev@lists.osgeo.org" target="_blank">MapServer-dev@lists.osgeo.org</a>><br>
<b>Aihe:</b> Re: [MapServer-dev] Does mapserver support GIF format for WMS / WMTS services?<u></u><u></u></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<p><u></u> <u></u></p>
<div>
<p class="MsoNormal">Le 11/09/2023 à 09:09, Philippe Ghesquiere a écrit :<u></u><u></u></p>
</div>
<blockquote style="margin-top:5pt;margin-bottom:5pt">
<div>
<p class="MsoNormal">Hi Even, <u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">I thought over your answer again during the weekend. You give the right parameters to get a PNG image format; which is fine.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">However, I do need to offer a GIF format support in order to be compliant to the "<i>DGIWG WMS profile"</i> (OGC 09-102r3).<br>
Indeed, requirement #6 says :<u></u><u></u></p>
</div>
<blockquote style="margin-left:30pt;margin-right:0cm">
<div>
<p class="MsoNormal"><i>A DGIWG WMS server shall support the following raster formats for the GetMap operation </i><u></u><u></u></p>
</div>
</blockquote>
<blockquote style="margin-left:30pt;margin-right:0cm">
<div>
<ul type="disc">
<li class="MsoNormal">
<i>image/png, </i><u></u><u></u></li><li class="MsoNormal">
<i>image/gif, </i><u></u><u></u></li><li class="MsoNormal">
<i>image/jpeg</i><u></u><u></u></li></ul>
</div>
</blockquote>
<p class="MsoNormal">Do you have any other advice / ideas?<u></u><u></u></p>
</div>
</blockquote>
<p>- Tell DGIWG folks that the world has moved since the 90's and they should consider moving on ;-)<u></u><u></u></p>
<p>- add middleware between client and mapserver to request png8 to mapserver and convert it back to gif in the middleware<u></u><u></u></p>
<p>- probably easier: enhance mapserver to add back gif support<u></u><u></u></p>
<p><u></u> <u></u></p>
<blockquote style="margin-top:5pt;margin-bottom:5pt">
<div>
<div>
<p class="MsoNormal">Sincerely<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Philippe<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">On Fri, Sep 8, 2023 at 4:02 PM Philippe Ghesquiere <<a href="mailto:philippe.ghesquiere@airbus.com" target="_blank">philippe.ghesquiere@airbus.com</a>> wrote:<u></u><u></u></p>
</div>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0cm 0cm 0cm 6pt;margin-left:4.8pt;margin-right:0cm">
<div>
<p class="MsoNormal">Thanks Even & Seth, <u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">I will give it a try<u></u><u></u></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">On Fri, Sep 8, 2023 at 3:02 PM Seth G <<a href="mailto:sethg@geographika.co.uk" target="_blank">sethg@geographika.co.uk</a>> wrote:<u></u><u></u></p>
</div>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0cm 0cm 0cm 6pt;margin-left:4.8pt;margin-right:0cm">
<div>
<div>
<div>
<p class="MsoNormal">I think `WITH_GIF` is only used to read in GIF images (for symbols etc.)?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">As Even wrote GDAL/GIF doesn't seem to work as an OUTPUTFORMAT. I get:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New";color:black">msDrawMap(): Image handling error. Failed to draw layer named 'countries'. msOGRFileNextShape(): OGR error. OGR GetNextFeature() error'd. Check logs</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div id="m_-615019686449326788m_762017645438115707m_-9209968738697729874sig62266145">
<div>
<p class="MsoNormal">--<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">web:<a href="https://geographika.net/" target="_blank">https://geographika.net</a> & <a href="https://mapserverstudio.net/" target="_blank">https://mapserverstudio.net</a><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">twitter: @geographika<u></u><u></u></p>
</div>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">On Fri, Sep 8, 2023, at 2:43 PM, Even Rouault wrote:<u></u><u></u></p>
</div>
<blockquote style="margin-top:5pt;margin-bottom:5pt" id="m_-615019686449326788m_762017645438115707m_-9209968738697729874qt">
<p>Philippe,<u></u><u></u></p>
<div>
<p class="MsoNormal">Le 08/09/2023 à 14:16, Philippe Ghesquiere via MapServer-dev a écrit :<u></u><u></u></p>
</div>
<blockquote style="margin-top:5pt;margin-bottom:5pt">
<div>
<div>
<p class="MsoNormal">Hi all,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">I am a little bit confused with GIF support for WMS/WMTS services.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">In several parts of the documentation, it is mentioned that GIF support is discarded with the end of the "GD library" support.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">I noticed the compilation option in CMakelists.txt :<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">option(WITH_GIF "Enable GIF support (for PIXMAP loading)" ON)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">I do not understand the "for PIXMAP loading" comment.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Anyway, our mapserver does not server WMS/WMTS tiles in GIF format.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">So here are my few questions :<u></u><u></u></p>
</div>
<div>
<ul type="disc">
<li class="MsoNormal">
is GIF support enabled by default for WMS/WMTS services ?<u></u><u></u></li></ul>
</div>
</div>
</blockquote>
<div>
<p class="MsoNormal">no<u></u><u></u></p>
</div>
<blockquote style="margin-top:5pt;margin-bottom:5pt">
<div>
<div>
<ul type="disc">
<li class="MsoNormal">
do I need to add the option : -DWITH_GIF=ON for cmake configuration ?<u></u><u></u></li></ul>
</div>
</div>
</blockquote>
<div>
<p class="MsoNormal">only to load raster symbols in GIF format<u></u><u></u></p>
</div>
<blockquote style="margin-top:5pt;margin-bottom:5pt">
<div>
<div>
<div>
<ul type="disc">
<li class="MsoNormal">
do I need to add a specific mapserver configuration, like :<u></u><u></u></li></ul>
</div>
<div>
<p class="MsoNormal" style="margin-left:36pt">
OUTPUTFORMAT<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36pt">
   NAME "GIF"<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36pt">
   DRIVER GDAL/GIF<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36pt">
   MIMETYPE "image/GIF"<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36pt">
   IMAGEMODE RGB<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36pt">
   EXTENSION "gif"<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36pt">
END<u></u><u></u></p>
</div>
</div>
</div>
</blockquote>
<p>I don't think that will work. The GDAL GIF driver already expects paletted data, not RGB.  And I don't think switching IMAGEMODE to PC256 would work since that support has effectively gone.<u></u><u></u></p>
<p>I believe the only option to get paletted data is to use PNG8 with the AGG/PNG8 driver and MIMETYPE="image/png; mode=8bit"<u></u><u></u></p>
<p>Even<u></u><u></u></p>
<p><u></u> <u></u></p>
<blockquote style="margin-top:5pt;margin-bottom:5pt">
<div>
<div>
<div>
<p class="MsoNormal">Thanks for your help and advices<u></u><u></u></p>
</div>
</div>
<div>
<p class="MsoNormal">Philippe<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
<div>
<p class="MsoNormal">The information in this e-mail is confidential. The contents may not be disclosed or used by anyone other than the addressee. Access to this e-mail by anyone else is unauthorised.<br>
If you are not the intended recipient, please notify Airbus immediately and delete this e-mail.<br>
Airbus cannot accept any responsibility for the accuracy or completeness of this e-mail as it has been sent over public networks. If you have any concerns over the content of this message or its Accuracy or Integrity, please contact Airbus immediately.<br>
All outgoing e-mails from Airbus are checked using regularly updated virus scanning software but you should take whatever measures you deem to be appropriate to ensure that this message and any attachments are virus free.<u></u><u></u></p>
</div>
<pre>_______________________________________________<u></u><u></u></pre>
<pre>MapServer-dev mailing list<u></u><u></u></pre>
<pre><a href="mailto:MapServer-dev@lists.osgeo.org" target="_blank">MapServer-dev@lists.osgeo.org</a><u></u><u></u></pre>
<pre><a href="https://lists.osgeo.org/mailman/listinfo/mapserver-dev" target="_blank">https://lists.osgeo.org/mailman/listinfo/mapserver-dev</a><u></u><u></u></pre>
<pre><u></u> <u></u></pre>
</blockquote>
<pre>-- <u></u><u></u></pre>
<pre><a href="http://www.spatialys.com/" target="_blank">http://www.spatialys.com</a><u></u><u></u></pre>
<pre>My software is free, but my time generally not.<u></u><u></u></pre>
<div>
<p class="MsoNormal">_______________________________________________<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">MapServer-dev mailing list<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><a href="mailto:MapServer-dev@lists.osgeo.org" target="_blank">MapServer-dev@lists.osgeo.org</a><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><a href="https://lists.osgeo.org/mailman/listinfo/mapserver-dev" target="_blank">https://lists.osgeo.org/mailman/listinfo/mapserver-dev</a><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</blockquote>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
</div>
</blockquote>
</div>
</blockquote>
</div>
<p class="MsoNormal"><span style="font-size:7pt">The information in this e-mail is confidential. The contents may not be disclosed or used by anyone other than the addressee. Access to this e-mail by anyone else is unauthorised.<br>
If you are not the intended recipient, please notify Airbus immediately and delete this e-mail.<br>
Airbus cannot accept any responsibility for the accuracy or completeness of this e-mail as it has been sent over public networks. If you have any concerns over the content of this message or its Accuracy or Integrity, please contact Airbus immediately.<br>
All outgoing e-mails from Airbus are checked using regularly updated virus scanning software but you should take whatever measures you deem to be appropriate to ensure that this message and any attachments are virus free.</span><u></u><u></u></p>
</blockquote>
<pre>-- <u></u><u></u></pre>
<pre><a href="http://www.spatialys.com/" target="_blank">http://www.spatialys.com</a><u></u><u></u></pre>
<pre>My software is free, but my time generally not.<u></u><u></u></pre>
</div>
</div>

</div></blockquote></div>
<font style="font-size: 9px;">The information in this e-mail is confidential. The contents may not be disclosed or used by anyone other than the addressee. Access to this e-mail by anyone else is unauthorised.<br>If you are not the intended recipient, please notify Airbus immediately and delete this e-mail.<br>Airbus cannot accept any responsibility for the accuracy or completeness of this e-mail as it has been sent over public networks. If you have any concerns over the content of this message or its Accuracy or Integrity, please contact Airbus immediately.<br>All outgoing e-mails from Airbus are checked using regularly updated virus scanning software but you should take whatever measures you deem to be appropriate to ensure that this message and any attachments are virus free.</font>