| | 14 | |
| | 15 | {{{ |
| | 16 | |
| | 17 | >>> rast = GDALRaster('rasters/data/raw_tempe.tif', write=True) |
| | 18 | >>> r = Rast(name='Test', image=rast) |
| | 19 | >>> r.save() |
| | 20 | Traceback (most recent call last): |
| | 21 | File "/mnt/f/Projects/gis322/env/lib/python3.6/site-packages/django/db/backends/utils.py", line 85, in _execute |
| | 22 | return self.cursor.execute(sql, params) |
| | 23 | psycopg2.OperationalError: cannot allocate memory for output buffer |
| | 24 | |
| | 25 | |
| | 26 | The above exception was the direct cause of the following exception: |
| | 27 | |
| | 28 | Traceback (most recent call last): |
| | 29 | File "<console>", line 1, in <module> |
| | 30 | File "/mnt/f/Projects/gis322/env/lib/python3.6/site-packages/django/db/models/base.py", line 718, in save |
| | 31 | force_update=force_update, update_fields=update_fields) |
| | 32 | File "/mnt/f/Projects/gis322/env/lib/python3.6/site-packages/django/db/models/base.py", line 748, in save_base |
| | 33 | updated = self._save_table(raw, cls, force_insert, force_update, using, update_fields) |
| | 34 | File "/mnt/f/Projects/gis322/env/lib/python3.6/site-packages/django/db/models/base.py", line 831, in _save_table |
| | 35 | result = self._do_insert(cls._base_manager, using, fields, update_pk, raw) |
| | 36 | File "/mnt/f/Projects/gis322/env/lib/python3.6/site-packages/django/db/models/base.py", line 869, in _do_insert |
| | 37 | using=using, raw=raw) |
| | 38 | File "/mnt/f/Projects/gis322/env/lib/python3.6/site-packages/django/db/models/manager.py", line 82, in manager_method |
| | 39 | return getattr(self.get_queryset(), name)(*args, **kwargs) |
| | 40 | File "/mnt/f/Projects/gis322/env/lib/python3.6/site-packages/django/db/models/query.py", line 1136, in _insert |
| | 41 | return query.get_compiler(using=using).execute_sql(return_id) |
| | 42 | File "/mnt/f/Projects/gis322/env/lib/python3.6/site-packages/django/db/models/sql/compiler.py", line 1289, in execute_sql |
| | 43 | cursor.execute(sql, params) |
| | 44 | File "/mnt/f/Projects/gis322/env/lib/python3.6/site-packages/django/db/backends/utils.py", line 100, in execute |
| | 45 | return super().execute(sql, params) |
| | 46 | File "/mnt/f/Projects/gis322/env/lib/python3.6/site-packages/django/db/backends/utils.py", line 68, in execute |
| | 47 | return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) |
| | 48 | File "/mnt/f/Projects/gis322/env/lib/python3.6/site-packages/django/db/backends/utils.py", line 77, in _execute_with_wrappers |
| | 49 | return executor(sql, params, many, context) |
| | 50 | File "/mnt/f/Projects/gis322/env/lib/python3.6/site-packages/django/db/backends/utils.py", line 85, in _execute |
| | 51 | return self.cursor.execute(sql, params) |
| | 52 | File "/mnt/f/Projects/gis322/env/lib/python3.6/site-packages/django/db/utils.py", line 89, in __exit__ |
| | 53 | raise dj_exc_value.with_traceback(traceback) from exc_value |
| | 54 | File "/mnt/f/Projects/gis322/env/lib/python3.6/site-packages/django/db/backends/utils.py", line 85, in _execute |
| | 55 | return self.cursor.execute(sql, params) |
| | 56 | django.db.utils.OperationalError: cannot allocate memory for output buffer |
| | 57 | |
| | 58 | }}} |