[GRASS-SVN] r67231 - grass/branches/releasebranch_7_0/lib/raster

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Dec 18 12:52:40 PST 2015


Author: mmetz
Date: 2015-12-18 12:52:40 -0800 (Fri, 18 Dec 2015)
New Revision: 67231

Modified:
   grass/branches/releasebranch_7_0/lib/raster/open.c
Log:
rasterlib: add test if compressor type is supported

Modified: grass/branches/releasebranch_7_0/lib/raster/open.c
===================================================================
--- grass/branches/releasebranch_7_0/lib/raster/open.c	2015-12-18 19:34:50 UTC (rev 67230)
+++ grass/branches/releasebranch_7_0/lib/raster/open.c	2015-12-18 20:52:40 UTC (rev 67231)
@@ -216,6 +216,12 @@
 			  r_name, r_mapset);
     }
 
+    /* test if compressor type is supported */
+    if (cellhd.compressed > 2) {
+	G_fatal_error(_("Raster map <%s@%s>: unsupported compression type %d"),
+		      r_name, r_mapset, cellhd.compressed);
+    }
+
     if (cellhd.proj != R__.rd_window.proj)
 	G_fatal_error(_("Raster map <%s> is in different projection than current region. "
 			"Found <%s>, should be <%s>."),



More information about the grass-commit mailing list