I am trying to georeference a .png image with some control points, which would be the corner coordinates. I have achieved this using Gdal only
with:
from osgeo import gdal
ds = gdal.Open(f'{filename}.png’)
gdal.Translate(filename + ‘.tif’,
ds,
outputBounds=bounds)
but when I try to put this in my DJANGO API I can’t because Django GDAL doesn’t have the gdal.translate method. Does anyone know what the equivalent of this function is in Django gdal or how can I georeference a png image with boundaries using django?
Joan Sebastian Diaz Gomez is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.