예제 #1
0
 def prepared(self):
     """
     Returns a PreparedGeometry corresponding to this geometry -- it is
     optimized for the contains, intersects, and covers operations.
     """
     if GEOS_PREPARE:
         return PreparedGeometry(self)
     else:
         raise GEOSException('GEOS 3.1+ required for prepared geometry support.')
예제 #2
0
 def prepared(self):
     """
     Returns a PreparedGeometry corresponding to this geometry -- it is
     optimized for the contains, intersects, and covers operations.
     """
     return PreparedGeometry(self)