250 |
left, bottom, right, top = box |
left, bottom, right, top = box |
251 |
return self.shapetree.find_shapes((left, bottom), (right, top)) |
return self.shapetree.find_shapes((left, bottom), (right, top)) |
252 |
|
|
253 |
|
def GetProjection(self): |
254 |
|
return self.projection |
255 |
|
|
256 |
def SetProjection(self, projection): |
def SetProjection(self, projection): |
257 |
"""Set the layer's projection""" |
"""Set the layer's projection""" |
258 |
self.projection = projection |
self.projection = projection |
308 |
items.append(_("Extent (lat-lon):")) |
items.append(_("Extent (lat-lon):")) |
309 |
items.append(_("Shapetype: %s") % shapetype_names[self.ShapeType()]) |
items.append(_("Shapetype: %s") % shapetype_names[self.ShapeType()]) |
310 |
|
|
311 |
|
if self.projection and len(self.projection.params) > 0: |
312 |
|
items.append((_("Projection"), |
313 |
|
[str(param) for param in self.projection.params])) |
314 |
|
|
315 |
items.append(self.__classification) |
items.append(self.__classification) |
316 |
|
|
317 |
return (_("Layer '%s'") % self.Title(), items) |
return (_("Layer '%s'") % self.Title(), items) |
318 |
|
|
319 |
|
|