[GRASS-SVN] r63011 - in grass/trunk: include lib/gis

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Nov 26 03:20:06 PST 2014


Author: martinl
Date: 2014-11-26 03:20:06 -0800 (Wed, 26 Nov 2014)
New Revision: 63011

Modified:
   grass/trunk/include/gis.h
   grass/trunk/lib/gis/parser_standard_options.c
Log:
libgis: G_OPT_M_NULL_VALUE added - make distclean NEEDED


Modified: grass/trunk/include/gis.h
===================================================================
--- grass/trunk/include/gis.h	2014-11-26 11:00:09 UTC (rev 63010)
+++ grass/trunk/include/gis.h	2014-11-26 11:20:06 UTC (rev 63011)
@@ -267,7 +267,8 @@
     G_OPT_M_COLR,               /*!< color rules */
     G_OPT_M_DIR,                /*!< directory input */    
     G_OPT_M_REGION,             /*!< saved region */
-
+    G_OPT_M_NULL_VALUE,         /*!< null value string */
+    
     G_OPT_STDS_INPUT,           /*!< old input space time dataset of type strds, str3ds or stvds */
     G_OPT_STDS_INPUTS,          /*!< old input space time datasets */
     G_OPT_STDS_OUTPUT,          /*!< new output space time dataset */

Modified: grass/trunk/lib/gis/parser_standard_options.c
===================================================================
--- grass/trunk/lib/gis/parser_standard_options.c	2014-11-26 11:00:09 UTC (rev 63010)
+++ grass/trunk/lib/gis/parser_standard_options.c	2014-11-26 11:20:06 UTC (rev 63011)
@@ -102,6 +102,7 @@
    - G_OPT_M_COORDS
    - G_OPT_M_COLR
    - G_OPT_M_REGION
+   - G_OPT_M_NULL_VALUE
 
   - temporal GIS framework
    - G_OPT_STDS_INPUT
@@ -664,7 +665,16 @@
 	Opt->descriptions = G_color_rules_descriptions();
         Opt->gisprompt = "old,colortable,colortable";
 	break;
-
+        
+    case G_OPT_M_NULL_VALUE:
+        Opt->key = "null_value";
+        Opt->key_desc = "string";
+        Opt->type = TYPE_STRING;
+        Opt->required = NO;
+        Opt->multiple = NO;
+        Opt->description = _("String representing NULL value data cell");
+        break;
+        
     case G_OPT_M_REGION:
         Opt->key = "region";
         Opt->type = TYPE_STRING;



More information about the grass-commit mailing list