206 |
form (minx, miny, maxx, maxy) in the coordinate system of the |
form (minx, miny, maxx, maxy) in the coordinate system of the |
207 |
shape store. |
shape store. |
208 |
""" |
""" |
209 |
|
# Bind a few globals to locals to make it a bit faster |
210 |
|
cls = ShapefileShape |
211 |
|
shapefile = self.shapefile |
212 |
|
|
213 |
left, bottom, right, top = bbox |
left, bottom, right, top = bbox |
214 |
for i in self.shapetree.find_shapes((left, bottom), (right, top)): |
for i in self.shapetree.find_shapes((left, bottom), (right, top)): |
215 |
yield ShapefileShape(self.shapefile, i) |
yield cls(shapefile, i) |
216 |
|
|
217 |
def AllShapes(self): |
def AllShapes(self): |
218 |
"""Return an iterable over the shapes in the shape store.""" |
"""Return an iterable over the shapes in the shape store.""" |