Closed zaza316614 closed 6 years ago
It looks like you are reprojecting the raster to EPSG 3857 and then creating overviews within the raster file. Django-raster has a different approach, the raster is projected to 3857 but then it is split into many single tiles, which are then stored in the PostGIS backend that needs to be configured.
So you can not directly do what you have posted here. It would be possible to do with the GDALRaster
class from Django, but the script would be similar to what you posted (except that it uses Django's internal gdal c-bindings and python api.
If you want to produce a raster you can display, you can use django-raster as described above. You would need to configure django with a postgis backend, as described in the docs.
Hi.
I have to upload to server raster file and convert it when saving in file system if necessary. This is algorithm.
How can I use django-raster to implement this?
Thank you.