[GRASS-SVN] r60858 - grass/branches/releasebranch_7_0/raster/r.viewshed

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Jun 18 01:26:58 PDT 2014


Author: neteler
Date: 2014-06-18 01:26:58 -0700 (Wed, 18 Jun 2014)
New Revision: 60858

Modified:
   grass/branches/releasebranch_7_0/raster/r.viewshed/grass.cpp
Log:
r.viewshed: more informative error message if maxDimension (rows/cols) is exceeded

Modified: grass/branches/releasebranch_7_0/raster/r.viewshed/grass.cpp
===================================================================
--- grass/branches/releasebranch_7_0/raster/r.viewshed/grass.cpp	2014-06-18 01:25:51 UTC (rev 60857)
+++ grass/branches/releasebranch_7_0/raster/r.viewshed/grass.cpp	2014-06-18 08:26:58 UTC (rev 60858)
@@ -108,8 +108,11 @@
 	hd->nrows = (dimensionType) nrows;
 	hd->ncols = (dimensionType) ncols;
     }
-    else
+    else {
+	G_warning("ERROR: nrows (%d) > maxDimension (%d) AND/OR ncols (%d) > maxDimension (%d)", 
+	           nrows, maxDimension, ncols, maxDimension);
 	G_fatal_error(_("Grid dimension too big for current precision"));
+    }
 
 
     /*fill in rest of header */



More information about the grass-commit mailing list