Ejemplo n.º 1
0
 def __del__(self):
     if self.__geom__ is not None:
         try:
             lgeos.GEOSPreparedGeom_destroy(self.__geom__)
         except AttributeError:
             pass  # lgeos might be empty on shutdown
     self.__geom__ = None
     self.context = None
Ejemplo n.º 2
0
 def __del__(self):
     if self.__geom__ is not None:
         lgeos.GEOSPreparedGeom_destroy(self.__geom__)
     self.__geom__ = None
     self.context = None