/[thuban]/trunk/thuban/Thuban/Model/layer.py
ViewVC logotype

Diff of /trunk/thuban/Thuban/Model/layer.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1592 by bh, Fri Aug 15 10:31:07 2003 UTC revision 1593 by bh, Fri Aug 15 14:10:27 2003 UTC
# Line 254  class Layer(BaseLayer): Line 254  class Layer(BaseLayer):
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

Legend:
Removed from v.1592  
changed lines
  Added in v.1593

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26