def __del__(self): if self._tree_handle is not None: try: lgeos.GEOSSTRtree_destroy(self._tree_handle) except AttributeError: pass # lgeos might be empty on shutdown. self._tree_handle = None
def __del__(self): if self._tree_handle is not None: _lgeos.GEOSSTRtree_destroy(self._tree_handle) self._tree_handle = None
def __del__(self): lgeos.GEOSSTRtree_destroy(self._tree_handle)