I created a GeoDjango model using
RasterField(). I have been trying to upload the raster using
postgis. Here is how I load the raster
raster = GDALRaster('rasters/data/my_image.tif', write = True) r = Rast(name = "Hello", image = raster) r.save()
Everything works fine until I try to save the object and get
django.db.utils.OperationalError: cannot allocate memory for output buffer.
I am not sure how to solve this. The raster is a single image that is around one gb. When I look at my usage during this process I notice that almost all of my 32gb of ram is being used for some reason. Can this be chunked or is there an alternative to saving this?