[GRASS-SVN] r55662 - grass-addons/grass7/raster/r.agent/libagent
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Apr 8 06:54:47 PDT 2013
Author: mic
Date: 2013-04-08 06:54:47 -0700 (Mon, 08 Apr 2013)
New Revision: 55662
Modified:
grass-addons/grass7/raster/r.agent/libagent/grassland.py
Log:
fix parsevectorlayer writing position
Modified: grass-addons/grass7/raster/r.agent/libagent/grassland.py
===================================================================
--- grass-addons/grass7/raster/r.agent/libagent/grassland.py 2013-04-08 13:51:31 UTC (rev 55661)
+++ grass-addons/grass7/raster/r.agent/libagent/grassland.py 2013-04-08 13:54:47 UTC (rev 55662)
@@ -106,8 +106,8 @@
# TODO do they all look like this??
if len(v) == 4 and v[0] == v[3]:
p = self.stringcoordinate(v[1],v[2])
- p = ( p[0] - self.region["s"] ) / self.region["nsres"]
- p = ( p[1] - self.region["w"] ) / self.region["ewres"]
+ p[0] = ( p[0] - self.region["s"] ) / self.region["nsres"]
+ p[1] = ( p[1] - self.region["w"] ) / self.region["ewres"]
vectors.append(p)
self.layers[layername][p[0]][p[1]] = value
return vectors
More information about the grass-commit
mailing list