Loading django/contrib/gis/gdal/datasource.py +1 −1 Original line number Diff line number Diff line Loading @@ -96,7 +96,7 @@ class DataSource(GDALBase): def __del__(self): "Destroys this DataStructure object." if self._ptr: if self._ptr and capi: capi.destroy_ds(self._ptr) def __iter__(self): Loading django/contrib/gis/gdal/feature.py +1 −1 Original line number Diff line number Diff line Loading @@ -34,7 +34,7 @@ class Feature(GDALBase): def __del__(self): "Releases a reference to this object." if self._ptr: if self._ptr and capi: capi.destroy_feature(self._ptr) def __getitem__(self, index): Loading django/contrib/gis/gdal/geometries.py +1 −1 Original line number Diff line number Diff line Loading @@ -127,7 +127,7 @@ class OGRGeometry(GDALBase): def __del__(self): "Deletes this Geometry." if self._ptr: if self._ptr and capi: capi.destroy_geom(self._ptr) # Pickle routines Loading django/contrib/gis/gdal/srs.py +1 −1 Original line number Diff line number Diff line Loading @@ -97,7 +97,7 @@ class SpatialReference(GDALBase): def __del__(self): "Destroys this spatial reference." if self._ptr: if self._ptr and capi: capi.release_srs(self._ptr) def __getitem__(self, target): Loading django/contrib/gis/geos/geometry.py +1 −1 Original line number Diff line number Diff line Loading @@ -115,7 +115,7 @@ class GEOSGeometry(GEOSBase, ListMixin): Destroys this Geometry; in other words, frees the memory used by the GEOS C++ object. """ if self._ptr: if self._ptr and capi: capi.destroy_geom(self._ptr) def __copy__(self): Loading Loading
django/contrib/gis/gdal/datasource.py +1 −1 Original line number Diff line number Diff line Loading @@ -96,7 +96,7 @@ class DataSource(GDALBase): def __del__(self): "Destroys this DataStructure object." if self._ptr: if self._ptr and capi: capi.destroy_ds(self._ptr) def __iter__(self): Loading
django/contrib/gis/gdal/feature.py +1 −1 Original line number Diff line number Diff line Loading @@ -34,7 +34,7 @@ class Feature(GDALBase): def __del__(self): "Releases a reference to this object." if self._ptr: if self._ptr and capi: capi.destroy_feature(self._ptr) def __getitem__(self, index): Loading
django/contrib/gis/gdal/geometries.py +1 −1 Original line number Diff line number Diff line Loading @@ -127,7 +127,7 @@ class OGRGeometry(GDALBase): def __del__(self): "Deletes this Geometry." if self._ptr: if self._ptr and capi: capi.destroy_geom(self._ptr) # Pickle routines Loading
django/contrib/gis/gdal/srs.py +1 −1 Original line number Diff line number Diff line Loading @@ -97,7 +97,7 @@ class SpatialReference(GDALBase): def __del__(self): "Destroys this spatial reference." if self._ptr: if self._ptr and capi: capi.release_srs(self._ptr) def __getitem__(self, target): Loading
django/contrib/gis/geos/geometry.py +1 −1 Original line number Diff line number Diff line Loading @@ -115,7 +115,7 @@ class GEOSGeometry(GEOSBase, ListMixin): Destroys this Geometry; in other words, frees the memory used by the GEOS C++ object. """ if self._ptr: if self._ptr and capi: capi.destroy_geom(self._ptr) def __copy__(self): Loading