Browse Source

libgis: G_OPT_M_NULL_VALUE added - make distclean NEEDED

git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@63012 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 10 years ago
parent
commit
84f039dff7
2 changed files with 13 additions and 2 deletions
  1. 2 1
      include/gis.h
  2. 11 1
      lib/gis/parser_standard_options.c

+ 2 - 1
include/gis.h

@@ -266,7 +266,8 @@ typedef enum
     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 */

+ 11 - 1
lib/gis/parser_standard_options.c

@@ -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
@@ -655,7 +656,16 @@ struct Option *G_define_standard_option(int opt)
 	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;