I am using gdal.Translate()
of Python instead of command line gdal_translate
. Most of the options in GDAL. Translate are the same with gdal_translate and I could find them easily in gdal.TranslateOptions
but I am struggling on how to input the WMS XML (https://gdal.org/drivers/raster/wms.html) in the function.
Normally in command line I would do something like this:
gdal_translate -of PNG -outsize 512 512 frmt_wms_openstreetmap_tms.xml openstreetmap.png
Does someone know how to do the same in gdal.Translate()
?