Код: Выделить всё
from osgeo import gdal
ds = gdal.Open(f'{filename}.png')
gdal.Translate(filename + '.tif', ds, outputBounds=bounds)
Подробнее здесь: https://stackoverflow.com/questions/787 ... -in-django
Код: Выделить всё
from osgeo import gdal
ds = gdal.Open(f'{filename}.png')
gdal.Translate(filename + '.tif', ds, outputBounds=bounds)