[GRASS-SVN] r52707 - grass/branches/develbranch_6/raster/r.compress
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Aug 17 06:31:15 PDT 2012
Author: neteler
Date: 2012-08-17 06:31:15 -0700 (Fri, 17 Aug 2012)
New Revision: 52707
Modified:
grass/branches/develbranch_6/raster/r.compress/main.c
Log:
Don't try to (un)compress GDAL-linked maps (backport from trunk, r49681)
Modified: grass/branches/develbranch_6/raster/r.compress/main.c
===================================================================
--- grass/branches/develbranch_6/raster/r.compress/main.c 2012-08-17 13:30:57 UTC (rev 52706)
+++ grass/branches/develbranch_6/raster/r.compress/main.c 2012-08-17 13:31:15 UTC (rev 52707)
@@ -126,6 +126,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 = G_raster_map_type(name, G_mapset());
More information about the grass-commit
mailing list