From 04a156170fff1eabfee5acb02520b86f338af2bf Mon Sep 17 00:00:00 2001 From: Nicola Manica Date: Tue, 30 Dec 2008 14:27:23 +0100 Subject: [PATCH] Solved gnuplot display bug Using the new location and the new gpx the query create correctly the altimetric profile in /tmp/grass/tmp.png --- processes/shortestpath.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/processes/shortestpath.py b/processes/shortestpath.py index 15afee4..e57b282 100644 --- a/processes/shortestpath.py +++ b/processes/shortestpath.py @@ -74,8 +74,7 @@ class Process(WPSProcess): # print coords f.close(); #Elaboro path per avere le coordinate necessarie - #self.cmd("cat point") -# self.cmd("r.profile input=elevation profile=%s output=/tmp/grass/path.profile" % coords) + self.cmd("r.profile input=elevation profile=%s output=/tmp/grass/path.profile" % coords) self.status.set(msg="Altimetric Profile created",percentDone=60) g = Gnuplot.Gnuplot() g.title('Profilo altimetrico del sentiero') @@ -84,7 +83,7 @@ class Process(WPSProcess): g('set terminal unknown') g('set data style lines') g.plot(Gnuplot.File('/tmp/grass/path.profile', title=None)) - g.hardcopy('/tmp/grass/tmp.svg',terminal = 'svg') + g.hardcopy('/tmp/grass/tmp.png',terminal = 'png') self.status.set(msg="Gnuplot image generated",percentDone=70) self.cmd("v.out.ogr format=GML input=path dsn=out.xml olayer=path.xml") self.status.set(msg="Results saved", percentDone=80) -- 2.11.4.GIT