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

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

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

revision 985 by jonathan, Wed May 21 17:22:58 2003 UTC revision 986 by tkoester, Thu May 22 16:41:10 2003 UTC
# Line 5  Line 5 
5  # This program is free software under the GPL (>=v2)  # This program is free software under the GPL (>=v2)
6  # Read the file COPYING coming with Thuban for details.  # Read the file COPYING coming with Thuban for details.
7    
8    """
9    ClassGenerator
10    """
11    
12    __version__ = "$Revision$"
13    # $Source$
14    # $Id$
15    
16  import operator  import operator
17    
18  from color import Color  from color import Color
# Line 95  class ClassGenerator: Line 103  class ClassGenerator:
103    
104              # this check guards against rounding issues              # this check guards against rounding issues
105              if cur_min != cur_max:              if cur_min != cur_max:
106                  range = Range("[" + str(float(cur_min)) + ";" +                  range = Range(("[", cur_min, cur_max, end))
                                     str(float(cur_max)) + end)  
107                  clazz.AppendGroup(ClassGroupRange(range, None, prop))                  clazz.AppendGroup(ClassGroupRange(range, None, prop))
108    
109              cur_min = cur_max              cur_min = cur_max

Legend:
Removed from v.985  
changed lines
  Added in v.986

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26