/[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 793 by jan, Wed Apr 30 12:26:33 2003 UTC revision 794 by jonathan, Wed Apr 30 17:00:52 2003 UTC
# Line 245  class Layer(BaseLayer): Line 245  class Layer(BaseLayer):
245      def ShapesInRegion(self, box):      def ShapesInRegion(self, box):
246          """Return the ids of the shapes that overlap the box.          """Return the ids of the shapes that overlap the box.
247    
248          Box is a tuple (left, bottom, right, top) in the coordinate          Box is a tuple (left, bottom, right, top) in unprojected coordinates.
         system used by the layer's shapefile.  
249          """          """
250          left, bottom, right, top = box          left, bottom, right, top = box
251    
252            if self.projection is not None:
253                left,  bottom = self.projection.Forward(left, bottom)
254                right, top    = self.projection.Forward(right, top)
255    
256          return self.shapetree.find_shapes((left, bottom), (right, top))          return self.shapetree.find_shapes((left, bottom), (right, top))
257    
258      def GetProjection(self):      def GetProjection(self):

Legend:
Removed from v.793  
changed lines
  Added in v.794

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26