[GRASS-SVN] r59578 - grass-addons/grass6/vector/v.mkhexgrid

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Apr 5 09:17:55 PDT 2014


Author: neteler
Date: 2014-04-05 09:17:55 -0700 (Sat, 05 Apr 2014)
New Revision: 59578

Modified:
   grass-addons/grass6/vector/v.mkhexgrid/v.mkhexgrid
Log:
v.mkhexgrid Addon: fix v.clean call (trac #2245); fix non-required parameters

Modified: grass-addons/grass6/vector/v.mkhexgrid/v.mkhexgrid
===================================================================
--- grass-addons/grass6/vector/v.mkhexgrid/v.mkhexgrid	2014-04-05 09:35:03 UTC (rev 59577)
+++ grass-addons/grass6/vector/v.mkhexgrid/v.mkhexgrid	2014-04-05 16:17:55 UTC (rev 59578)
@@ -55,7 +55,7 @@
 #%  answer: area
 #%  description: Method to calculate size
 #%  multiple: no
-#%  required: yes
+#%  required: no
 #%end
 #%option
 #%  key: sidelength
@@ -63,7 +63,7 @@
 #%  label: Side length
 #%  answer: 100.0
 #%  description: Size of side length in map units
-#%  required: yes
+#%  required: no
 #%end
 #%option
 #%  key: hexarea
@@ -71,7 +71,7 @@
 #%  label: Hexagon Area
 #%  answer: 200.0
 #%  description: Area of hexagon in map units
-#%  required: yes
+#%  required: no
 #%end
 
 import sys
@@ -275,8 +275,7 @@
         return(-1)
     grass.message('Cleaning and building topology')
     try:
-        r = grass.run_command('v.clean', flags='-q', input=tempname, \
-            output=tname, type='point,line,boundary,centroid,area', tool='rmdupl')
+        r = grass.run_command('v.clean', input=tempname, output=tname, type='point,line,boundary,centroid,area', tool='rmdupl')
         if r <> 0:
             raise
     except:



More information about the grass-commit mailing list