I'm trying to perform a rather simple task.. but can't find a simple solution.. I'm trying to re-project a raster layer using GDAL in python. I've read this solution , and this , and this, and others. It seems that all of them assume some parameters like pixel size or xy origins but I need to get all of the parameters from the raster itself, it suppose to be as generic as possible, the only constant thing is the output coordinate system which is wgs84 (EPSG=4326).
I've also saw different tools to perform this task like gdalwrap or getransform, so I'm a bit confused.
To sum it all up, I need to re-project the input_raster from whatever coordinate system it is on to output_raster that will be in wgs84 coordinate system.
input_raster = r"C:\Users\B3.tif"
output_raster = r"C:\Users\B3_proj.tif"
Could you help me in writing a python code using gdal to perform this task?
gdal.Warp(output, input, dstSRS='EPSG:4326')if you have gdal >= 2.0 – user2856 Mar 26 '17 at 21:52gdalwarp, not GDAL_Warp. – user2856 Mar 26 '17 at 21:53