[GRASS-SVN] r73474 - grass-addons/grass7/vector/v.stream.inbasin
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Oct 1 14:57:44 PDT 2018
Author: awickert
Date: 2018-10-01 14:57:44 -0700 (Mon, 01 Oct 2018)
New Revision: 73474
Modified:
grass-addons/grass7/vector/v.stream.inbasin/v.stream.inbasin.py
Log:
v.stream.inbasin: SQL_OR --> SQL_LIST
Modified: grass-addons/grass7/vector/v.stream.inbasin/v.stream.inbasin.py
===================================================================
--- grass-addons/grass7/vector/v.stream.inbasin/v.stream.inbasin.py 2018-10-01 21:53:48 UTC (rev 73473)
+++ grass-addons/grass7/vector/v.stream.inbasin/v.stream.inbasin.py 2018-10-01 21:57:44 UTC (rev 73474)
@@ -190,7 +190,7 @@
#SQL_OR = 'cat = ' + ' OR cat = '.join(map(str, basincats))
SQL_LIST = 'cat IN (' + ', '.join(map(str, basincats)) + ')'
if len(basins) > 0:
- v.extract(input=basins, output=output_basins, where=SQL_OR, overwrite=gscript.overwrite(), quiet=True)
+ v.extract(input=basins, output=output_basins, where=SQL_LIST, overwrite=gscript.overwrite(), quiet=True)
if len(streams) > 0:
v.extract(input=streams, output=output_streams, cats=basincats_str, overwrite=gscript.overwrite(), quiet=True)
More information about the grass-commit
mailing list