[GRASS-SVN] r52706 - grass/branches/releasebranch_6_4/raster/r.compress
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Aug 17 06:30:58 PDT 2012
Author: neteler
Date: 2012-08-17 06:30:57 -0700 (Fri, 17 Aug 2012)
New Revision: 52706
Modified:
grass/branches/releasebranch_6_4/raster/r.compress/main.c
Log:
Don't try to (un)compress GDAL-linked maps (backport from trunk, r49681)
Modified: grass/branches/releasebranch_6_4/raster/r.compress/main.c
===================================================================
--- grass/branches/releasebranch_6_4/raster/r.compress/main.c 2012-08-17 13:28:24 UTC (rev 52705)
+++ grass/branches/releasebranch_6_4/raster/r.compress/main.c 2012-08-17 13:30:57 UTC (rev 52706)
@@ -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