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

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Sep 13 02:14:01 PDT 2016


Author: mlennert
Date: 2016-09-13 02:14:01 -0700 (Tue, 13 Sep 2016)
New Revision: 69465

Modified:
   grass-addons/grass7/imagery/i.segment.stats/i.segment.stats.py
Log:
i.segment.stats: as absence of r.object.geometry is a fatal error, no need for the check later


Modified: grass-addons/grass7/imagery/i.segment.stats/i.segment.stats.py
===================================================================
--- grass-addons/grass7/imagery/i.segment.stats/i.segment.stats.py	2016-09-13 07:20:33 UTC (rev 69464)
+++ grass-addons/grass7/imagery/i.segment.stats/i.segment.stats.py	2016-09-13 09:14:01 UTC (rev 69465)
@@ -112,7 +112,6 @@
     vectormap = options['vectormap'] if options['vectormap'] else []
     rasters = options['rasters'].split(',') if options['rasters'] else []
     area_measures = options['area_measures'].split(',') if options['area_measures'] else []
-    r_object_geometry = True
     if area_measures:
 	if not gscript.find_program('r.object.geometry', '--help'):
 		message = _("You need to install the addon r.object.geometry to be able")
@@ -140,7 +139,7 @@
         gscript.run_command('g.region', raster=segment_map)
 
     stats_temp_file = gscript.tempfile()
-    if area_measures and r_object_geometry:
+    if area_measures
 	gscript.message(_("Calculating geometry statistics"))
 	output_header += area_measures
 	stat_indices = [geometry_stat_dict[x] for x in area_measures]



More information about the grass-commit mailing list