Ticket #9806: hack.diff

File hack.diff, 625 bytes (added by ingenieroariel, 15 years ago)

Dirty hack that avoids the crash.

  • django/contrib/gis/gdal/geomtype.py

    diff --git a/django/contrib/gis/gdal/geomtype.py b/django/contrib/gis/gdal/geomtype.py
    index 565326f..8fedd49 100644
    a b class OGRGeomType(object):  
    2424        if isinstance(type_input, OGRGeomType):
    2525            num = type_input.num
    2626        elif isinstance(type_input, basestring):
     27            if type_input.lower() == 'geometry': type_input='unknown'
    2728            num = self._str_types.get(type_input.lower(), None)
    2829            if num is None:
    2930                raise OGRException('Invalid OGR String Type "%s"' % type_input)
Back to Top