[GRASS-SVN] r69165 - grass-addons/grass7/raster/r.viewshed.cva
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Aug 20 12:31:03 PDT 2016
Author: annakrat
Date: 2016-08-20 12:31:03 -0700 (Sat, 20 Aug 2016)
New Revision: 69165
Modified:
grass-addons/grass7/raster/r.viewshed.cva/r.viewshed.cva.py
Log:
r.viewshed.cva: fix broken column name
Modified: grass-addons/grass7/raster/r.viewshed.cva/r.viewshed.cva.py
===================================================================
--- grass-addons/grass7/raster/r.viewshed.cva/r.viewshed.cva.py 2016-08-20 19:14:43 UTC (rev 69164)
+++ grass-addons/grass7/raster/r.viewshed.cva/r.viewshed.cva.py 2016-08-20 19:31:03 UTC (rev 69165)
@@ -137,8 +137,8 @@
if flags['e']:
flagstring += 'e'
#get the coords from the vector map, and check if we want to name them
- if flags['k'] and options["name_col"] is not '':
- output_points = grass.read_command("v.out.ascii", flags='r', input=vect, type="point", format="point", separator=",", columns=options["name_col"]).strip() # note that the "r" flag will constrain to points in the current geographic region.
+ if flags['k'] and options["name_column"] is not '':
+ output_points = grass.read_command("v.out.ascii", flags='r', input=vect, type="point", format="point", separator=",", columns=options["name_column"]).strip() # note that the "r" flag will constrain to points in the current geographic region.
else:
output_points = grass.read_command("v.out.ascii", flags='r', input=vect, type="point", format="point", separator=",").strip() # note that the "r" flag will constrain to points in the current geographic region.
grass.message(_("Note that the routine is constrained to points in the current geographic region."))
@@ -149,7 +149,7 @@
#now, loop through the master list and run r.viewshed for each of the sites, and append the viewsheds to a list (so we can work with them later)
vshed_list = []
for site in masterlist:
- if flags['k'] and options["name_col"] is not '':
+ if flags['k'] and options["name_column"] is not '':
ptname = site[3]
else:
ptname = site[2]
More information about the grass-commit
mailing list