[GRASS-SVN] r50582 - grass/trunk/scripts/d.vect.thematic
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Jan 31 05:36:06 EST 2012
Author: mlennert
Date: 2012-01-31 02:36:06 -0800 (Tue, 31 Jan 2012)
New Revision: 50582
Modified:
grass/trunk/scripts/d.vect.thematic/d.vect.thematic.py
Log:
applied patch proposed by Patrice Dumas on grass-dev
Modified: grass/trunk/scripts/d.vect.thematic/d.vect.thematic.py
===================================================================
--- grass/trunk/scripts/d.vect.thematic/d.vect.thematic.py 2012-01-31 10:06:30 UTC (rev 50581)
+++ grass/trunk/scripts/d.vect.thematic/d.vect.thematic.py 2012-01-31 10:36:06 UTC (rev 50582)
@@ -426,6 +426,9 @@
"custom_gradient": (startcolor, endcolor)
}
+ # open file for psmap instructions
+ f_psmap = file(tmp_psmap, 'w')
+
# graduated color thematic mapping
if themetype == "graduated_colors":
if colorscheme in colorschemes:
@@ -728,7 +731,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 +916,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-commit
mailing list