[GRASS-SVN] r65495 - grass-addons/grass7/vector/v.concave.hull
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Jun 17 04:01:05 PDT 2015
Author: mlennert
Date: 2015-06-17 04:01:05 -0700 (Wed, 17 Jun 2015)
New Revision: 65495
Modified:
grass-addons/grass7/vector/v.concave.hull/v.concave.hull.py
Log:
fatal error when threshold too high to calculate hull
Modified: grass-addons/grass7/vector/v.concave.hull/v.concave.hull.py
===================================================================
--- grass-addons/grass7/vector/v.concave.hull/v.concave.hull.py 2015-06-17 03:04:03 UTC (rev 65494)
+++ grass-addons/grass7/vector/v.concave.hull/v.concave.hull.py 2015-06-17 11:01:05 UTC (rev 65495)
@@ -137,6 +137,9 @@
l += 1
inf.close()
+ if max_length == 0.0:
+ grass.fatal(_("Cannot calculate hull. Try lowering the threshold."))
+
grass.message(_("Feature selection..."))
lines_concave = prefix + '_delaunay_lines_select'
lines_concave_nocat = prefix + '_delaunay_lines_select_nocat'
More information about the grass-commit
mailing list