/[thuban]/branches/WIP-pyshapelib-bramz/Thuban/UI/scalebar.py
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/Thuban/UI/scalebar.py

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

revision 912 by frank, Fri May 16 16:24:44 2003 UTC revision 1240 by frank, Thu Jun 19 09:25:31 2003 UTC
# Line 30  class ScaleBar: Line 30  class ScaleBar:
30                  BlackBrush = wxGREY_BRUSH                  BlackBrush = wxGREY_BRUSH
31                  BlackText = wxColor(127,127,127)                  BlackText = wxColor(127,127,127)
32              else:              else:
33                    params = {}
34                    # For geographic projection we have to convert the scale from
35                    # Unit DD to meters.
36                    for p in self.map.projection.params:
37                        key, value = p.split('=')
38                        params[key] = value
39                    if params['proj'] == 'latlong':
40                        scale = scale * 0.017453 / 1000.0
41                    # We have a projection, draw the scalebar in bw
42                  BlackPen = wxBLACK_PEN                  BlackPen = wxBLACK_PEN
43                  BlackBrush = wxBLACK_BRUSH                  BlackBrush = wxBLACK_BRUSH
44                  BlackText = wxBLACK                  BlackText = wxBLACK

Legend:
Removed from v.912  
changed lines
  Added in v.1240

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26