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 |