[GRASS-SVN] r49681 - grass/trunk/raster/r.compress

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Dec 12 09:48:35 EST 2011


Author: glynn
Date: 2011-12-12 06:48:35 -0800 (Mon, 12 Dec 2011)
New Revision: 49681

Modified:
   grass/trunk/raster/r.compress/main.c
Log:
Don't try to (un)compress GDAL-linked maps


Modified: grass/trunk/raster/r.compress/main.c
===================================================================
--- grass/trunk/raster/r.compress/main.c	2011-12-12 14:28:09 UTC (rev 49680)
+++ grass/trunk/raster/r.compress/main.c	2011-12-12 14:48:35 UTC (rev 49681)
@@ -113,6 +113,10 @@
 		  name, rname, rmapset);
 	return 1;
     }
+    if (G_find_file2_misc("cell_misc", "gdal", name, G_mapset())) {
+	G_warning(_("[%s] is a GDAL-linked map - can't (un)compress"), name);
+	return 1;
+    }
 
     map_type = Rast_map_type(name, G_mapset());
 



More information about the grass-commit mailing list