[GRASS-SVN] r72766 - grass/trunk/raster/r.null
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Jun 4 05:44:28 PDT 2018
Author: mmetz
Date: 2018-06-04 05:44:28 -0700 (Mon, 04 Jun 2018)
New Revision: 72766
Modified:
grass/trunk/raster/r.null/main.c
Log:
r.null: ignore GRASS VRT
Modified: grass/trunk/raster/r.null/main.c
===================================================================
--- grass/trunk/raster/r.null/main.c 2018-06-04 12:41:23 UTC (rev 72765)
+++ grass/trunk/raster/r.null/main.c 2018-06-04 12:44:28 UTC (rev 72766)
@@ -132,8 +132,12 @@
G_fatal_error(_("Raster map <%s> is a reclass of map <%s@%s>. "
"Consider to generate a copy with r.mapcalc. Exiting."),
name, rname, rmapset);
+ if (G_find_file2_misc("cell_misc", "vrt", name, "")) {
+ G_fatal_error(_("<%s> is a virtual raster map. "
+ "Consider to generate a copy with r.mapcalc. Exiting."),
+ name);
+ }
-
if (strcmp(mapset, G_mapset()) != 0)
G_fatal_error(_("Raster map <%s> is not in your mapset <%s>"),
name, G_mapset());
More information about the grass-commit
mailing list