/[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 371 by jonathan, Mon Jan 27 13:49:39 2003 UTC revision 374 by jan, Mon Jan 27 14:20:02 2003 UTC
# Line 20  See the description of getProperties() f Line 20  See the description of getProperties() f
20  on the mapping algorithm.  on the mapping algorithm.
21  """  """
22        
23    from Thuban import _
24    
25  # constants  # constants
26  RANGE_MIN  = 0  RANGE_MIN  = 0
27  RANGE_MAX  = 1  RANGE_MAX  = 1
# Line 70  class Classification: Line 72  class Classification:
72          """          """
73    
74          if min >= max:          if min >= max:
75              raise ValueError("Range minimum >= maximum!")              raise ValueError(_("Range minimum >= maximum!"))
76          self.__ranges.append([min, max, data])          self.__ranges.append([min, max, data])
77    
78      def addPoint(self, value, data):      def addPoint(self, value, data):

Legend:
Removed from v.371  
changed lines
  Added in v.374

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26