[GRASS-SVN] r73741 - grass/trunk/scripts/v.rast.stats
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Nov 30 12:58:29 PST 2018
Author: annakrat
Date: 2018-11-30 12:58:29 -0800 (Fri, 30 Nov 2018)
New Revision: 73741
Modified:
grass/trunk/scripts/v.rast.stats/v.rast.stats.py
Log:
v.rast.stats: mixed tabs and spaces
Modified: grass/trunk/scripts/v.rast.stats/v.rast.stats.py
===================================================================
--- grass/trunk/scripts/v.rast.stats/v.rast.stats.py 2018-11-30 20:32:32 UTC (rev 73740)
+++ grass/trunk/scripts/v.rast.stats/v.rast.stats.py 2018-11-30 20:58:29 UTC (rev 73741)
@@ -158,15 +158,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