Browse Source

v.outlier: warn user if no subregions found (broken outlier map will be created)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@59285 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler 11 years ago
parent
commit
8229bcb2f0
1 changed files with 2 additions and 0 deletions
  1. 2 0
      vector/v.outlier/main.c

+ 2 - 0
vector/v.outlier/main.c

@@ -342,6 +342,8 @@ int main(int argc, char *argv[])
 	    subregion++;
 	    subregion++;
 	    if (nsubregions > 1)
 	    if (nsubregions > 1)
 		G_message(_("subregion %d of %d"), subregion, nsubregions);
 		G_message(_("subregion %d of %d"), subregion, nsubregions);
+	    else /* v.outlier -e will report mean point distance: */
+		G_warning(_("No subregions found! Check values for 'soe' and 'son' parameters"));
 
 
 	    P_set_regions(&elaboration_reg, &general_box, &overlap_box, dims,
 	    P_set_regions(&elaboration_reg, &general_box, &overlap_box, dims,
 			  GENERAL_COLUMN);
 			  GENERAL_COLUMN);