[GRASS-SVN] r73748 - grass/branches/releasebranch_7_6/scripts/v.rast.stats
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Dec 1 08:58:58 PST 2018
Author: neteler
Date: 2018-12-01 08:58:58 -0800 (Sat, 01 Dec 2018)
New Revision: 73748
Modified:
grass/branches/releasebranch_7_6/scripts/v.rast.stats/v.rast.stats.py
Log:
v.rast.stats: mixed tabs and spaces (trunk, r73741)
Modified: grass/branches/releasebranch_7_6/scripts/v.rast.stats/v.rast.stats.py
===================================================================
--- grass/branches/releasebranch_7_6/scripts/v.rast.stats/v.rast.stats.py 2018-12-01 02:50:06 UTC (rev 73747)
+++ grass/branches/releasebranch_7_6/scripts/v.rast.stats/v.rast.stats.py 2018-12-01 16:58:58 UTC (rev 73748)
@@ -157,15 +157,15 @@
# prepare base raster for zonal statistics
try:
nlines = grass.vector_info_topo(vector)['lines']
- kwargs = {}
- if where:
- kwargs['where'] = where
+ kwargs = {}
+ if where:
+ kwargs['where'] = where
# Create densified lines rather than thin lines
if flags['d'] and nlines > 0:
- kwargs['flags'] = 'd'
+ kwargs['flags'] = 'd'
- grass.run_command('v.to.rast', input=vector, layer=layer, output=rastertmp,
- use='cat', quiet=True, **kwargs)
+ grass.run_command('v.to.rast', input=vector, layer=layer, output=rastertmp,
+ use='cat', quiet=True, **kwargs)
except CalledModuleError:
grass.fatal(_("An error occurred while converting vector to raster"))
More information about the grass-commit
mailing list