summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2013-07-06 17:25:46 +0200
committerClaude Paroz <claude@2xlibre.net>2013-07-06 17:25:46 +0200
commitc94093c5bae0f8d9c29a2eeda2de2ea85a0c3ca6 (patch)
tree44dfc6823721c94f954caa4aa04bd54dc4e37e3e /django
parentde676f94b7de1db0c04d089d087e301701135449 (diff)
[gis] Dropped official support for GDAL < 1.6
Diffstat (limited to 'django')
-rw-r--r--django/contrib/gis/gdal/geometries.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/django/contrib/gis/gdal/geometries.py b/django/contrib/gis/gdal/geometries.py
index 0d75620b4e..d75e8cd288 100644
--- a/django/contrib/gis/gdal/geometries.py
+++ b/django/contrib/gis/gdal/geometries.py
@@ -198,14 +198,6 @@ class OGRGeometry(GDALBase):
def _get_coord_dim(self):
"Returns the coordinate dimension of the Geometry."
- if isinstance(self, GeometryCollection) and GDAL_VERSION < (1, 5, 2):
- # On GDAL versions prior to 1.5.2, there exists a bug in which
- # the coordinate dimension of geometry collections is always 2:
- # http://trac.osgeo.org/gdal/ticket/2334
- # Here we workaround by returning the coordinate dimension of the
- # first geometry in the collection instead.
- if len(self):
- return capi.get_coord_dim(capi.get_geom_ref(self.ptr, 0))
return capi.get_coord_dim(self.ptr)
def _set_coord_dim(self, dim):