254 |
return self.store.Shape(index) |
return self.store.Shape(index) |
255 |
|
|
256 |
def ShapesInRegion(self, bbox): |
def ShapesInRegion(self, bbox): |
257 |
"""Return the ids of the shapes that overlap the box. |
"""Return an iterable over the shapes that overlap the bounding box. |
258 |
|
|
259 |
Box is a tuple (left, bottom, right, top) in unprojected coordinates. |
The bbox parameter should be the bounding box as a tuple in the |
260 |
|
form (minx, miny, maxx, maxy) in unprojected coordinates. |
261 |
""" |
""" |
262 |
if self.projection is not None: |
if self.projection is not None: |
263 |
left, bottom, right, top = bbox |
left, bottom, right, top = bbox |