I am trying to reproject the coordinate system of a shapefile.
I know I can do it in the OSGEO4W window as ogr2ogr -s_srs EPSG:27700 -t_srs EPSG:3857 C:/test/input.shp C:/test/output.tif
However, I want to be able to do this in Python. I found this documentation but can't figure out how to achieve what I want
output.tif
instead ofoutput.shp
so it's not clear if you want to transform a shp to tiff or just reproject a shapefile, or both. Please clarify your question. Also if GDAL python bindings ir the only library you are allowed to use or other python libraries can be used.