189 |
system used by the layer's shapefile. |
system used by the layer's shapefile. |
190 |
""" |
""" |
191 |
left, bottom, right, top = box |
left, bottom, right, top = box |
192 |
import time |
return self.shapetree.find_shapes((left, bottom), (right, top)) |
|
start = time.time() |
|
|
ids = self.shapetree.find_shapes((left, bottom), (right, top)) |
|
|
print "ShapesInRegion", time.time() - start |
|
|
return ids |
|
193 |
|
|
194 |
def SetProjection(self, projection): |
def SetProjection(self, projection): |
195 |
"""Set the layer's projection""" |
"""Set the layer's projection""" |