#9244: LayerMapping.save fails for large polygon record
---------------------------------+------------------------------------------
Reporter: tylere | Owner: jbronn
Status: new | Milestone:
Component: GIS | Version: 1.0
Resolution: | Keywords: LayerMapping gdal
Stage: Unreviewed | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
---------------------------------+------------------------------------------
Changes (by jbronn):
* keywords: LayerMapping => LayerMapping gdal
* needs_better_patch: => 0
* owner: nobody => jbronn
* needs_tests: => 0
* needs_docs: => 0
Comment:
The data file may downloaded from:
http://geodjango.org/fccs_poly_orig_wgs84_problem.zip
The problem may be reproduced without `LayerMapping`, or even use of
models:
{{{
>>> from django.contrib.gis.gdal import DataSource
>>> ds = DataSource('fccs_poly_orig_wgs84_problem.shp')
>>> lyr = ds[0]
>>> feat = lyr[0]
Python(45141) malloc: *** mmap(size=135168) failed (error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
terminate called after throwing an instance of 'std::bad_alloc'
what(): St9bad_alloc
Abort trap
}}}
--
Ticket URL: <http://code.djangoproject.com/ticket/9244#comment:1>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---