[GRASS-SVN] r60859 - grass/trunk/raster/r.viewshed
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Jun 18 01:27:24 PDT 2014
Author: neteler
Date: 2014-06-18 01:27:24 -0700 (Wed, 18 Jun 2014)
New Revision: 60859
Modified:
grass/trunk/raster/r.viewshed/grass.cpp
Log:
r.viewshed: more informative error message if maxDimension (rows/cols) is exceeded
Modified: grass/trunk/raster/r.viewshed/grass.cpp
===================================================================
--- grass/trunk/raster/r.viewshed/grass.cpp 2014-06-18 08:26:58 UTC (rev 60858)
+++ grass/trunk/raster/r.viewshed/grass.cpp 2014-06-18 08:27:24 UTC (rev 60859)
@@ -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