[GRASS-SVN] r66774 - grass-addons/grass7/imagery/i.segment.stats

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Nov 9 05:52:29 PST 2015


Author: mlennert
Date: 2015-11-09 05:52:29 -0800 (Mon, 09 Nov 2015)
New Revision: 66774

Modified:
   grass-addons/grass7/imagery/i.segment.stats/i.segment.stats.py
Log:
clumped map is a raster, not a vector


Modified: grass-addons/grass7/imagery/i.segment.stats/i.segment.stats.py
===================================================================
--- grass-addons/grass7/imagery/i.segment.stats/i.segment.stats.py	2015-11-09 12:06:44 UTC (rev 66773)
+++ grass-addons/grass7/imagery/i.segment.stats/i.segment.stats.py	2015-11-09 13:52:29 UTC (rev 66774)
@@ -82,8 +82,8 @@
     if grass.find_file(temporary_vect, element='vector')['name']:
             grass.run_command('g.remove', flags='f', type_='vector',
                     name=temporary_vect, quiet=True)
-    if grass.find_file(temporary_clumped_rast, element='vector')['name']:
-            grass.run_command('g.remove', flags='f', type_='vector',
+    if grass.find_file(temporary_clumped_rast, element='raster')['name']:
+            grass.run_command('g.remove', flags='f', type_='raster',
                     name=temporary_clumped_rast, quiet=True)
     if insert_sql:
         os.remove(insert_sql)



More information about the grass-commit mailing list