Quellcode durchsuchen

libgis: G_OPT_M_NULL_VALUE added - make distclean NEEDED

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@63011 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa vor 10 Jahren
Ursprung
Commit
e4e9279152
2 geänderte Dateien mit 13 neuen und 2 gelöschten Zeilen
  1. 2 1
      include/gis.h
  2. 11 1
      lib/gis/parser_standard_options.c

+ 2 - 1
include/gis.h

@@ -267,7 +267,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
@@ -664,7 +665,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;