I've been using GDAL warp to re-project a tiff I have.

On the GDAL commandline I use gdalwarp -t_srs EPSG:3857 C:/test/test_file.tif C:/test/test_file_gdal.tif

Similarly, I wanted to run this function in python, so tried this

import os

command = 'gdalwarp -t_srs EPSG:3857 C:/test/test_file.tif C:/test/test_file_python.tif'


However, despite them being the exact same command I'm getting 2 differently placed outputs. Why is this?

enter image description here

  • Do you use the same GDAL version in both cases?
    – user30184
    Jul 15, 2022 at 14:56
  • @user30184 yeah I am using GDAL version 3.4.0 in both instances Jul 16, 2022 at 16:23


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.