[gdal-dev] Image reprojection with GDALWARP
Even Rouault
even.rouault at spatialys.com
Wed Feb 1 07:58:16 PST 2023
Try adding -r bilinear or -r bicubic. By default gdalwarp performs
nearest resampling which is rarely what you need for high quality results
Le 01/02/2023 à 16:44, Elena Ruiz a écrit :
>
> 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:
>
> 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.
>
> Image source with drawing:
> https://aplitop.sharefile.com/d-s4d6dcf6d8ff34023a8b6e95277519c56
>
> 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 :
>
> 1/.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"/
>
> 2./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"/
>
> //
>
> And the resulting image, in addition to noticing that the road is
> distorted (like a staircase effect), does not match the drawing.
>
> Image destination with drawing:
> https://aplitop.sharefile.com/d-s98f76513feb34c268764c0492ccb40d3
> <https://aplitop.sharefile.com/d-s98f76513feb34c268764c0492ccb40d3>
>
> Zoom of image destination:
> https://aplitop.sharefile.com/d-sf9a270a9300e4ac796eddeac7131a058
> <https://aplitop.sharefile.com/d-sf9a270a9300e4ac796eddeac7131a058>
>
> I have also done the test from EPSG:23030 to EPSG:25830 and it does
> not do well either.
>
> I am using the version of gdal 2.4.4 for x64, this is the link to
> download the source and destination image:
> https://aplitop.sharefile.com/d-sdae2552bd2054fdf8cc29ce5b559e278 , I
> hope someone can help me and tell me if there is something wrong. Regards
>
> ------------------------------------------------------------------------
>
>
> *Elena Ruiz *
> Sofware Development & Technical Support
> Tel. +34 952 43 97 71
> eruiz at aplitop.com
> Sumatra, 9 - 29190 Málaga (Spain)
> *www.aplitop.com
>
> <https://www.facebook.com/AplitopSL/> <https://twitter.com/aplitop>
> <https://www.linkedin.com/company/aplitop>
> <https://www.youtube.com/user/aplitop>*
>
> 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
>
>
>
>
>
>
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev
--
http://www.spatialys.com
My software is free, but my time generally not.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20230201/05d92112/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SocialLink_Facebook_32x32_a745adb8-c250-4372-8480-e77f503dad3d.png
Type: image/png
Size: 365 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20230201/05d92112/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SocialLink_Twitter_32x32_858247f6-9d4a-4740-a6b3-9b5ebfd98a97.png
Type: image/png
Size: 619 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20230201/05d92112/attachment-0005.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SocialLink_Linkedin_32x32_154d63de-bf68-468f-9eb0-ffed102fac77.png
Type: image/png
Size: 468 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20230201/05d92112/attachment-0006.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SocialLink_Youtube_32x32_0dea15dd-3774-4086-be9d-f62560b70c86.png
Type: image/png
Size: 817 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20230201/05d92112/attachment-0007.png>
More information about the gdal-dev
mailing list