[GRASS-dev] patch for grass_trunk d.vect.thematic
Patrice Dumas
pertusus at free.fr
Mon Jan 30 17:10:48 EST 2012
Hello,
A little patch for d.vect.thematic.py in trunk. It shows up if you use
d.vect.thematic themetype=graduated_points
It fixes 2 things. An unquoted string "graduated_lines". f_psmap not
being initialized although it is used line 1049. I moved the f_psmap
initialization before.
--
Pat
-------------- next part --------------
Index: scripts/d.vect.thematic/d.vect.thematic.py
===================================================================
--- scripts/d.vect.thematic/d.vect.thematic.py (r?vision 50573)
+++ scripts/d.vect.thematic/d.vect.thematic.py (copie de travail)
@@ -427,6 +427,7 @@
}
# graduated color thematic mapping
+ f_psmap = file(tmp_psmap, 'w')
if themetype == "graduated_colors":
if colorscheme in colorschemes:
startc, endc = colorschemes[colorscheme]
@@ -728,7 +729,6 @@
where = sqlwhere,
color = linecolor, fcolor = themecolor, icon = icon, size = ptsize)
- f_psmap = file(tmp_psmap, 'w')
if type in ["line", "boundary"]:
out(f_psmap, locals(), """\
vlines $map
@@ -914,7 +914,7 @@
lineht = 4
if i < xlower or i >= xupper:
- if themetype == graduated_lines:
+ if themetype == "graduated_lines":
out(f_graph, locals(), """\
color $linecolor
""")
More information about the grass-dev
mailing list