[GRASS-SVN] r55654 - grass-addons/grass7/raster/r.agent/libagent
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Apr 8 02:20:36 PDT 2013
Author: mic
Date: 2013-04-08 02:20:36 -0700 (Mon, 08 Apr 2013)
New Revision: 55654
Modified:
grass-addons/grass7/raster/r.agent/libagent/grassland.py
Log:
wrong reference fixed
Modified: grass-addons/grass7/raster/r.agent/libagent/grassland.py
===================================================================
--- grass-addons/grass7/raster/r.agent/libagent/grassland.py 2013-04-07 14:18:31 UTC (rev 55653)
+++ grass-addons/grass7/raster/r.agent/libagent/grassland.py 2013-04-08 09:20:36 UTC (rev 55654)
@@ -90,7 +90,7 @@
def parsevectorlayer(self, layername, grassmapname, value=1, force=False):
"""
- Take point information from a vector layer, mark them on the
+ Take point information from a vector layer, mark the points on the
layer specified and return them as a list
@param string name of the layer to be exported
@param string name of the GRASS map file to be created
@@ -98,7 +98,7 @@
@param boolean optional, whether an existing file may be overwritten
"""
vectors = []
- if grassmapname in grass.list_grouped('rast')[grass.gisenv()['MAPSET']]:
+ if grassmapname in grass.list_grouped('vect')[grass.gisenv()['MAPSET']]:
layer = grass.vector_db_select(grassmapname)['values']
# TODO only points are supported, ask some expert how to test this
# TODO indexing seems to start at "1".. verify!
More information about the grass-commit
mailing list