0

I am trying to georeference a png image with some control points, which would be the corner coordinates. I have achieved this using just GDAL with the following code:

from osgeo import gdal
 
ds = gdal.Open(f'{filename}.png')
gdal.Translate(filename + '.tif', ds, outputBounds=bounds)

But I can't put this in my Django API because Django GDAL doesn't have the gdal.Translate method. How can I georeference a png image with boundaries using Django/Django GDAL?

1

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.