コード例 #1
0
    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
コード例 #2
0
ファイル: spatial_index.py プロジェクト: 5l1v3r1/atlas-2
 def __del__(self):
     if self._tree_handle is not None:
         _lgeos.GEOSSTRtree_destroy(self._tree_handle)
         self._tree_handle = None
コード例 #3
0
ファイル: strtree.py プロジェクト: rgindallas/Shapely
 def __del__(self):
     lgeos.GEOSSTRtree_destroy(self._tree_handle)