Opened 6 years ago

Last modified 6 years ago

#29989 closed Bug

Geodjango running through memory — at Initial Version

Reported by: Taylor Owned by: nobody
Component: GIS Version: 2.1
Severity: Normal Keywords: raster, geodjango, postgis
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

I have been trying to upload a raser to my postgis backend and keep running into

django.db.utils.OperationalError: cannot allocate memory for output buffer

I try to upload the file in the django shell using the following:

raster = GDALRaster('rasters/data/my_image.tif', write=True) 
r = RastModel(name="Foo", image=raster)
r.save()

The image is only about a gb and I have plenty of ram to handle it. When I save the raster it runs through almost all 32gb of ram and then throws the error. From all the docs and posts I have seen it appears that I am uploading the raster correctly so I am assuming there is a bug somewhere.

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top