Ticket #9806: hack.diff
File hack.diff, 625 bytes (added by , 16 years ago) |
---|
-
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): 24 24 if isinstance(type_input, OGRGeomType): 25 25 num = type_input.num 26 26 elif isinstance(type_input, basestring): 27 if type_input.lower() == 'geometry': type_input='unknown' 27 28 num = self._str_types.get(type_input.lower(), None) 28 29 if num is None: 29 30 raise OGRException('Invalid OGR String Type "%s"' % type_input)