<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p><br>
    </p>
    <div class="moz-cite-prefix">Le 11/09/2023 à 09:09, Philippe
      Ghesquiere a écrit :<br>
    </div>
    <blockquote type="cite"
cite="mid:CAAes_OFeqs7YQp1NgjmnYU+pPZoioqyFwTeNFWactppb885XMg@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">Hi Even,
        <div><br>
        </div>
        <div>I thought over your answer again during the weekend. You
          give the right parameters to get a PNG image format; which is
          fine.</div>
        <div><br>
        </div>
        <div>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 :</div>
        <blockquote style="margin:0 0 0 40px;border:none;padding:0px">
          <div><i>A DGIWG WMS server shall support the following raster
              formats for the GetMap operation </i></div>
        </blockquote>
        <blockquote style="margin:0 0 0 40px;border:none;padding:0px">
          <div>
            <ul>
              <li><i>image/png, </i></li>
              <li><i>image/gif, </i></li>
              <li><i>image/jpeg</i></li>
            </ul>
          </div>
        </blockquote>
        Do you have any other advice / ideas?</div>
    </blockquote>
    <p>- Tell DGIWG folks that the world has moved since the 90's and
      they should consider moving on ;-)</p>
    <p>- add middleware between client and mapserver to request png8 to
      mapserver and convert it back to gif in the middleware</p>
    <p>- probably easier: enhance mapserver to add back gif support<br>
    </p>
    <p><br>
    </p>
    <blockquote type="cite"
cite="mid:CAAes_OFeqs7YQp1NgjmnYU+pPZoioqyFwTeNFWactppb885XMg@mail.gmail.com">
      <div dir="ltr">
        <div>Sincerely</div>
        <div>Philippe<br>
          <div><br>
          </div>
          <div><br>
          </div>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Fri, Sep 8, 2023 at 4:02 PM
          Philippe Ghesquiere <<a
            href="mailto:philippe.ghesquiere@airbus.com"
            moz-do-not-send="true" class="moz-txt-link-freetext">philippe.ghesquiere@airbus.com</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 dir="ltr">Thanks Even & Seth,
            <div><br>
            </div>
            <div>I will give it a try</div>
          </div>
          <br>
          <div class="gmail_quote">
            <div dir="ltr" class="gmail_attr">On Fri, Sep 8, 2023 at
              3:02 PM Seth G <<a
                href="mailto:sethg@geographika.co.uk" target="_blank"
                moz-do-not-send="true" class="moz-txt-link-freetext">sethg@geographika.co.uk</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>
                <div>
                  <div>I think `WITH_GIF` is only used to read in GIF
                    images (for symbols etc.)?<br>
                  </div>
                  <div><br>
                  </div>
                  <div>As Even wrote GDAL/GIF doesn't seem to work as an
                    OUTPUTFORMAT. I get:<br>
                  </div>
                  <div><br>
                  </div>
                  <div><span
style="color:rgb(0,0,0);font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;word-spacing:0px;white-space:normal;text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><span
                        style="font-family:monospace"><span
                          style="font-size:13px">msDrawMap(): Image
                          handling error. Failed to draw layer named
                          'countries'. msOGRFileNextShape(): OGR error.
                          OGR GetNextFeature() error'd. Check logs</span></span></span><br>
                  </div>
                  <div><span
style="color:rgb(0,0,0);font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;word-spacing:0px;white-space:normal;text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><span
                        style="font-family:monospace"><span
                          style="font-size:13px"></span></span></span><br>
                  </div>
                  <div><br>
                  </div>
                  <div
                    id="m_762017645438115707m_-9209968738697729874sig62266145">
                    <div>--<br>
                    </div>
                    <div>web:<a href="https://geographika.net"
                        target="_blank" moz-do-not-send="true"
                        class="moz-txt-link-freetext">https://geographika.net</a>
                      & <a href="https://mapserverstudio.net"
                        target="_blank" moz-do-not-send="true"
                        class="moz-txt-link-freetext">https://mapserverstudio.net</a><br>
                    </div>
                    <div>twitter: @geographika<br>
                    </div>
                  </div>
                  <div><br>
                  </div>
                  <div>On Fri, Sep 8, 2023, at 2:43 PM, Even Rouault
                    wrote:<br>
                  </div>
                  <blockquote type="cite"
                    id="m_762017645438115707m_-9209968738697729874qt">
                    <p>Philippe,<br>
                    </p>
                    <div>Le 08/09/2023 à 14:16, Philippe Ghesquiere via
                      MapServer-dev a écrit :<br>
                    </div>
                    <blockquote type="cite">
                      <div dir="ltr">
                        <div>Hi all,<br>
                        </div>
                        <div>I am a little bit confused with GIF support
                          for WMS/WMTS services.<br>
                        </div>
                        <div>In several parts of the documentation, it
                          is mentioned that GIF support is discarded
                          with the end of the "GD library" support.<br>
                        </div>
                        <div><br>
                        </div>
                        <div>I noticed the compilation option in
                          CMakelists.txt :<br>
                        </div>
                        <div>option(WITH_GIF "Enable GIF support (for
                          PIXMAP loading)" ON)<br>
                        </div>
                        <div>I do not understand the "for PIXMAP
                          loading" comment.<br>
                        </div>
                        <div><br>
                        </div>
                        <div>Anyway, our mapserver does not server
                          WMS/WMTS tiles in GIF format.<br>
                        </div>
                        <div><br>
                        </div>
                        <div>So here are my few questions :<br>
                        </div>
                        <div>
                          <ul>
                            <li>is GIF support enabled by default for
                              WMS/WMTS services ?<br>
                            </li>
                          </ul>
                        </div>
                      </div>
                    </blockquote>
                    <div>no<br>
                    </div>
                    <blockquote type="cite">
                      <div dir="ltr">
                        <div>
                          <ul>
                            <li>do I need to add the option :
                              -DWITH_GIF=ON for cmake configuration ?<br>
                            </li>
                          </ul>
                        </div>
                      </div>
                    </blockquote>
                    <div>only to load raster symbols in GIF format<br>
                    </div>
                    <blockquote type="cite">
                      <div dir="ltr">
                        <div>
                          <ul>
                            <li>
                              <div>do I need to add a specific mapserver
                                configuration, like :<br>
                              </div>
                              <div> OUTPUTFORMAT<br>
                              </div>
                              <div>    NAME "GIF"<br>
                              </div>
                              <div>    DRIVER GDAL/GIF<br>
                              </div>
                              <div>    MIMETYPE "image/GIF"<br>
                              </div>
                              <div>    IMAGEMODE RGB<br>
                              </div>
                              <div>    EXTENSION "gif"<br>
                              </div>
                              <div> END<br>
                              </div>
                            </li>
                          </ul>
                        </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.<br>
                    </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"<br>
                    </p>
                    <p>Even<br>
                    </p>
                    <p><br>
                    </p>
                    <blockquote type="cite">
                      <div dir="ltr">
                        <div>
                          <div>Thanks for your help and advices<br>
                          </div>
                        </div>
                        <div>Philippe<br>
                        </div>
                        <div><br>
                        </div>
                      </div>
                      <div><span>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></div>
                      <pre>_______________________________________________
MapServer-dev mailing list
<a href="mailto:MapServer-dev@lists.osgeo.org" target="_blank" moz-do-not-send="true" class="moz-txt-link-freetext">MapServer-dev@lists.osgeo.org</a>
<a href="https://lists.osgeo.org/mailman/listinfo/mapserver-dev" target="_blank" moz-do-not-send="true" class="moz-txt-link-freetext">https://lists.osgeo.org/mailman/listinfo/mapserver-dev</a>

</pre>
                    </blockquote>
                    <pre cols="72">-- 
<a href="http://www.spatialys.com" target="_blank" moz-do-not-send="true" class="moz-txt-link-freetext">http://www.spatialys.com</a>
My software is free, but my time generally not.
</pre>
                    <div>_______________________________________________<br>
                    </div>
                    <div>MapServer-dev mailing list<br>
                    </div>
                    <div><a href="mailto:MapServer-dev@lists.osgeo.org"
                        target="_blank" moz-do-not-send="true"
                        class="moz-txt-link-freetext">MapServer-dev@lists.osgeo.org</a><br>
                    </div>
                    <div><a
                        href="https://lists.osgeo.org/mailman/listinfo/mapserver-dev"
                        target="_blank" moz-do-not-send="true"
                        class="moz-txt-link-freetext">https://lists.osgeo.org/mailman/listinfo/mapserver-dev</a><br>
                    </div>
                    <div><br>
                    </div>
                  </blockquote>
                  <div><br>
                  </div>
                </div>
              </div>
            </blockquote>
          </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></blockquote>
    <pre class="moz-signature" cols="72">-- 
<a class="moz-txt-link-freetext" href="http://www.spatialys.com">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
  </body>
</html>