mirror of
https://github.com/django/django.git
synced 2025-11-24 04:47:12 +00:00
[gis] Dropped official support for GDAL < 1.6
This commit is contained in:
parent
de676f94b7
commit
c94093c5ba
2 changed files with 1 additions and 10 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue