<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Try adding -r bilinear or -r bicubic. By default gdalwarp
      performs nearest resampling which is rarely what you need for high
      quality results<br>
    </p>
    <div class="moz-cite-prefix">Le 01/02/2023 à 16:44, Elena Ruiz a
      écrit :<br>
    </div>
    <blockquote type="cite"
cite="mid:AM0P192MB049863B2586099DFEF6FFA78BBD19@AM0P192MB0498.EURP192.PROD.OUTLOOK.COM">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <style>@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}span.EstiloCorreo19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}div.WordSection1
        {page:WordSection1;}</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal"><span lang="PT">Hi, I'm trying to reproject
            images from WGS 84 / Pseudo-Mercator EPSG:3857 to ED50 / UTM
            zone 30N EPSG:23030, but the resulting image doesn't adapt
            well to drawing. I will explain it in more detail so that
            you understand:<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="PT"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="PT">I have an image in
            EPSG:3857, the result of a WMTS service, and a drawing in
            the same SRS, as you can see in the image the drawing
            matches the image perfectly.<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="PT">Image source with drawing:
            <a
              href="https://aplitop.sharefile.com/d-s4d6dcf6d8ff34023a8b6e95277519c56"
              moz-do-not-send="true" class="moz-txt-link-freetext">
https://aplitop.sharefile.com/d-s4d6dcf6d8ff34023a8b6e95277519c56</a><o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="PT"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="PT">I want to convert the
            previous image to EPSG:23030 and I have used gdalwarp
            command with different parameters and I get the same result
            :<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="PT"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="PT">1</span><i><span
              style="font-family:"Arial",sans-serif" lang="PT">.gdalwarp
              -s_srs EPSG:3857 -t_srs EPSG:23030 -co "TFW=YES"
              -overwrite "C:\Users\elena\Downloads\Nueva
              carpeta\imagen_t.tif" "C:\Users\elena\Downloads\Nueva
              carpeta\nueva_6.tif"<o:p></o:p></span></i></p>
        <p class="MsoNormal"><span lang="PT">2.</span><i><span
              style="font-family:"Arial",sans-serif" lang="PT">gdalwarp
              -s_srs EPSG:3857 -t_srs EPSG:23030 -te 335000 4084501.25
              335550 4084848.75 -co "TFW=YES" -overwrite
              "C:\Users\elena\Downloads\Nueva carpeta\imagen_t.tif"
              "C:\Users\elena\Downloads\Nueva carpeta\nueva_6.tif"<o:p></o:p></span></i></p>
        <p class="MsoNormal"><i><span
              style="font-family:"Arial",sans-serif" lang="PT"><o:p> </o:p></span></i></p>
        <p class="MsoNormal">And the resulting image, in addition to
          noticing that the road is distorted (like a staircase effect),
          does not match the drawing.<o:p></o:p></p>
        <p class="MsoNormal"><span lang="PT">Image destination with
            drawing: </span><a
            href="https://aplitop.sharefile.com/d-s98f76513feb34c268764c0492ccb40d3"
            moz-do-not-send="true"><span lang="PT">https://aplitop.sharefile.com/d-s98f76513feb34c268764c0492ccb40d3</span></a><span
            lang="PT"><o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="PT">Zoom of image destination:
          </span><a
            href="https://aplitop.sharefile.com/d-sf9a270a9300e4ac796eddeac7131a058"
            moz-do-not-send="true"><span lang="PT">https://aplitop.sharefile.com/d-sf9a270a9300e4ac796eddeac7131a058</span></a><span
            lang="PT"><o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="PT"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="PT">I have also done the test
            from EPSG:23030 to EPSG:25830 and it does not do well
            either.<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="PT">I am using the version of
            gdal 2.4.4 for x64, this is the link to download the source
            and destination image:
            <a
              href="https://aplitop.sharefile.com/d-sdae2552bd2054fdf8cc29ce5b559e278"
              moz-do-not-send="true" class="moz-txt-link-freetext">https://aplitop.sharefile.com/d-sdae2552bd2054fdf8cc29ce5b559e278</a>
            , I hope someone can help me and tell me if there is
            something wrong. Regards</span><o:p></o:p></p>
      </div>
      <hr>
      <table style="HEIGHT: 50px; WIDTH: 473px">
        <tbody>
          <tr>
            <td valing="top">
              <p style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"
                align="right"><img
                  src="https://www.aplitop.com/descargas/firma1.jpg"
                  moz-do-not-send="true" border="0"></p>
            </td>
            <td style="FONT-SIZE: 12pt; HEIGHT: 25px; FONT-FAMILY: Times
              New Roman; WIDTH: 330px" valign="top">
              <div style="LINE-HEIGHT: 13px" align="left"><span
                  style="FONT-SIZE: 9pt; FONT-FAMILY: Myriad Pro, Open
                  Sans, Arial"><strong>Elena Ruiz </strong></span><br>
                <span style="FONT-SIZE: 7pt; FONT-FAMILY: Myriad Pro,
                  Open Sans, Arial">Sofware Development & Technical
                  Support<br>
                </span><span style="FONT-SIZE: 7pt; FONT-FAMILY: Myriad
                  Pro, Open Sans, Arial">Tel. +34 952 43 97 71 <br>
                  <a class="moz-txt-link-abbreviated" href="mailto:eruiz@aplitop.com">eruiz@aplitop.com</a><br>
                  Sumatra, 9 - 29190 Málaga (Spain)<br>
                </span><span style="FONT-SIZE: 7pt; FONT-FAMILY: Myriad
                  Pro, Open Sans, Arial"><strong><a class="moz-txt-link-abbreviated" href="http://www.aplitop.com">www.aplitop.com</a><br>
                    <br>
                    <a class="socialLink"
                      href="https://www.facebook.com/AplitopSL/"
                      moz-do-not-send="true"><img class="socialLink"
                        style="HEIGHT: 15px; WIDTH: 15px"
                        src="cid:part1.R6ErkhZp.onhJLb0S@spatialys.com"
                        width="15" height="15" border="0"></a>   <a
                      class="socialLink"
                      href="https://twitter.com/aplitop"
                      moz-do-not-send="true"><img class="socialLink"
                        style="HEIGHT: 15px; WIDTH: 15px"
                        src="cid:part2.y3azrDw6.mnF0qYs0@spatialys.com"
                        width="15" height="15" border="0"></a>   <a
                      class="socialLink"
                      href="https://www.linkedin.com/company/aplitop"
                      moz-do-not-send="true"><img class="socialLink"
                        style="HEIGHT: 15px; WIDTH: 15px"
                        src="cid:part3.A5aJJmG9.eWHtlV2A@spatialys.com"
                        width="15" height="15" border="0"></a>   <a
                      class="socialLink"
                      href="https://www.youtube.com/user/aplitop"
                      moz-do-not-send="true"><img class="socialLink"
                        style="HEIGHT: 15px; WIDTH: 15px"
                        src="cid:part4.hEcM5H19.6SMmxFUj@spatialys.com"
                        width="15" height="15" border="0"></a></strong></span></div>
            </td>
          </tr>
        </tbody>
      </table>
      <p style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><span
          style="FONT-SIZE: 6pt; FONT-FAMILY: Myriad Pro">In accordance
          with the provisions of the European Regulation of Data
          Protection 2016/679 (Reglamento Europeo de Protección de Datos
          2016/679), we inform you that the data and the information you
          provide us through this medium will be used by APLITOP, S.L.,
          with C.I.F. B-92543396 and with address at C / Sumatra, 9,
          Malaga, 29190, in order to answer your questions and inform
          you about our products. The data provided will be kept as long
          as it does not request its cessation and will not be
          transferred to third parties except in cases where there is a
          legal obligation. You have the right to access your personal
          data, correct inaccurate data or request its deletion when the
          data is no longer necessary for the purposes that were
          collected, as well as any rights recognized in the RGPD
          2016/679<br>
        </span><span style="FONT-SIZE: 6pt; FONT-FAMILY: Myriad Pro"><br>
        </span></p>
      <p style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><span
          style="FONT-SIZE: 6pt; FONT-FAMILY: Myriad Pro"><br>
        </span><span style="FONT-SIZE: 6pt; FONT-FAMILY: Myriad Pro"><br>
          <br>
          <br>
          <br>
        </span></p>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
gdal-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/gdal-dev">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a>
</pre>
    </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>