[GRASS-SVN] r57275 - grass/trunk/vector/v.voronoi
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Jul 25 11:48:03 PDT 2013
Author: mmetz
Date: 2013-07-25 11:48:03 -0700 (Thu, 25 Jul 2013)
New Revision: 57275
Modified:
grass/trunk/vector/v.voronoi/sw_main.c
Log:
v.voronoi: at least 3 points/centroids are needed
Modified: grass/trunk/vector/v.voronoi/sw_main.c
===================================================================
--- grass/trunk/vector/v.voronoi/sw_main.c 2013-07-25 18:44:06 UTC (rev 57274)
+++ grass/trunk/vector/v.voronoi/sw_main.c 2013-07-25 18:48:03 UTC (rev 57275)
@@ -160,10 +160,11 @@
nsites++;
}
- if(nsites < 1) {
+ if (nsites < 3) {
const char *name = Vect_get_full_name(&In);
Vect_close(&In);
- G_fatal_error(_("No points/centroids found in <%s>"), name);
+ G_fatal_error(_("Found %d points/centroids in <%s>, but at least 3 are needed"),
+ nsites, name);
}
if (nsites < nlines)
More information about the grass-commit
mailing list