[GRASS-SVN] r62104 - grass/trunk/raster/r.in.bin
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Sep 26 16:44:36 PDT 2014
Author: glynn
Date: 2014-09-26 16:44:35 -0700 (Fri, 26 Sep 2014)
New Revision: 62104
Modified:
grass/trunk/raster/r.in.bin/main.c
Log:
-h (GMT header) and -n (vertical flip) are incompatible
Modified: grass/trunk/raster/r.in.bin/main.c
===================================================================
--- grass/trunk/raster/r.in.bin/main.c 2014-09-26 21:28:47 UTC (rev 62103)
+++ grass/trunk/raster/r.in.bin/main.c 2014-09-26 23:44:35 UTC (rev 62104)
@@ -375,6 +375,10 @@
order = G_is_little_endian() ? 0 : 1;
}
+ if (flag.gmt_hd->answer && flag.flip->answer)
+ G_fatal_error(_("-%c and -%c are mutually exclusive"),
+ flag.gmt_hd->key, flag.flip->key);
+
swap_flag = order == (G_is_little_endian() ? 0 : 1);
is_signed = !!flag.sign->answer;
More information about the grass-commit
mailing list