/[thuban]/branches/WIP-pyshapelib-bramz/Thuban/Model/classification.py
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/Thuban/Model/classification.py

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

revision 436 by jonathan, Thu Feb 27 15:53:03 2003 UTC revision 449 by jonathan, Tue Mar 4 10:33:08 2003 UTC
# Line 16  an input value falls with a range that d Line 16  an input value falls with a range that d
16  If no mapping can be found then default data will  If no mapping can be found then default data will
17  be returned. Input values must be hashable objects  be returned. Input values must be hashable objects
18    
19  See the description of GetClassData() for more information  See the description of GetGroup() for more information
20  on the mapping algorithm.  on the mapping algorithm.
21  """  """
22        
# Line 406  class ClassGroupRange(ClassGroup): Line 406  class ClassGroupRange(ClassGroup):
406      def Matches(self, value):      def Matches(self, value):
407          return self.min <= value < self.max          return self.min <= value < self.max
408    
409      def GetProperties(self, value):      def GetProperties(self, value = None):
410          if value is None: return self.prop          if value is None: return self.prop
411    
412          if self.Matches(value):          if self.Matches(value):

Legend:
Removed from v.436  
changed lines
  Added in v.449

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26