Ejemplo n.º 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
Ejemplo n.º 2
0
 def __del__(self):
     if self._tree_handle is not None:
         _lgeos.GEOSSTRtree_destroy(self._tree_handle)
         self._tree_handle = None
Ejemplo n.º 3
0
 def __del__(self):
     lgeos.GEOSSTRtree_destroy(self._tree_handle)