Opened 12 years ago

Closed 12 years ago

#19490 closed Bug (invalid)

lgdal.OGR_DS_CreateLayer crashes on Mac OS X Mountain Lion

Reported by: Dylan Verheul Owned by: nobody
Component: GIS Version: 1.4
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

lgdal.OGR_DS_CreateLayer crashes on Mac OS X Mountain Lion

Python 2.7.2 (default, Jun 20 2012, 16:23:33)
[GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)] on darwin
Type "help", "copyright", "credits" or "license" for more information.

import django
django.VERSION

(1, 4, 3, 'final', 0)

from django.contrib.gis.gdal.libgdal import lgdal
layer = lgdal.OGR_DS_CreateLayer()

Segmentation fault: 11

Change History (1)

comment:1 by Claude Paroz, 12 years ago

Resolution: invalid
Status: newclosed

I don't think you can directly call any OGR function without first defining the argtypes and restype of the function. In contrib.gis.gdal.prototypes, read ds.py and generation.py to find examples.

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