瀏覽代碼

libgis: add headers (parse_*.c)
update standard options (OGR support)


git-svn-id: https://svn.osgeo.org/grass/grass/trunk@39886 15284696-431f-4ddb-bdfa-cd5b030d7da7

Martin Landa 15 年之前
父節點
當前提交
f4db1184d4
共有 4 個文件被更改,包括 64 次插入5 次删除
  1. 14 0
      lib/gis/parser_help.c
  2. 14 1
      lib/gis/parser_interface.c
  3. 14 0
      lib/gis/parser_script.c
  4. 22 4
      lib/gis/parser_standard_options.c

+ 14 - 0
lib/gis/parser_help.c

@@ -1,3 +1,17 @@
+/*!
+ * \file gis/parser_help.c
+ *
+ * \brief GIS Library - Argument parsing functions (help)
+ *
+ * (C) 2001-2009 by the GRASS Development Team
+ *
+ * This program is free software under the GNU General Public License
+ * (>=v2). Read the file COPYING that comes with GRASS for details.
+ *
+ * \author Original author CERL
+ * \author Soeren Gebbert added Dec. 2009 WPS process_description document
+ */
+
 #include "parser_local_proto.h"
 
 static void show_options(int, const char *);

+ 14 - 1
lib/gis/parser_interface.c

@@ -1,5 +1,18 @@
-#include "parser_local_proto.h"
+/*!
+ * \file gis/parser_interface.c
+ *
+ * \brief GIS Library - Argument parsing functions (interface)
+ *
+ * (C) 2001-2009 by the GRASS Development Team
+ *
+ * This program is free software under the GNU General Public License
+ * (>=v2). Read the file COPYING that comes with GRASS for details.
+ *
+ * \author Original author CERL
+ * \author Soeren Gebbert added Dec. 2009 WPS process_description document
+ */
 
+#include "parser_local_proto.h"
 
 /*!
  * \brief Formats text for XML.

+ 14 - 0
lib/gis/parser_script.c

@@ -1,3 +1,17 @@
+/*!
+ * \file gis/parser_script.c
+ *
+ * \brief GIS Library - Argument parsing functions (script)
+ *
+ * (C) 2001-2009 by the GRASS Development Team
+ *
+ * This program is free software under the GNU General Public License
+ * (>=v2). Read the file COPYING that comes with GRASS for details.
+ *
+ * \author Original author CERL
+ * \author Soeren Gebbert added Dec. 2009 WPS process_description document
+ */
+
 #include "parser_local_proto.h"
 
 void G__script(void)

+ 22 - 4
lib/gis/parser_standard_options.c

@@ -1,3 +1,17 @@
+/*!
+ * \file gis/parser_standard_options.c
+ *
+ * \brief GIS Library - Argument parsing functions (standard options)
+ *
+ * (C) 2001-2009 by the GRASS Development Team
+ *
+ * This program is free software under the GNU General Public License
+ * (>=v2). Read the file COPYING that comes with GRASS for details.
+ *
+ * \author Original author CERL
+ * \author Soeren Gebbert added Dec. 2009 WPS process_description document
+ */
+
 #include "parser_local_proto.h"
 
 /*!
@@ -275,7 +289,8 @@ struct Option *G_define_standard_option(int opt)
 	Opt->key_desc = "name";
 	Opt->required = YES;
 	Opt->gisprompt = "old,vector,vector";
-	Opt->description = _("Name of input vector map");
+	Opt->label = _("Name of input vector map");
+	Opt->description = _("Data source for OGR access");
 	break;
     case G_OPT_V_INPUTS:
 	Opt->key = "input";
@@ -284,7 +299,8 @@ struct Option *G_define_standard_option(int opt)
 	Opt->required = YES;
 	Opt->multiple = YES;
 	Opt->gisprompt = "old,vector,vector";
-	Opt->description = _("Name of input vector map(s)");
+	Opt->label = _("Name of input vector map(s)");
+	Opt->description = _("Data source(s) for OGR access");
 	break;
     case G_OPT_V_OUTPUT:
 	Opt->key = "output";
@@ -300,7 +316,8 @@ struct Option *G_define_standard_option(int opt)
 	Opt->key_desc = "name";
 	Opt->required = YES;
 	Opt->gisprompt = "old,vector,vector";
-	Opt->description = _("Name of input vector map");
+	Opt->label = _("Name of input vector map");
+	Opt->description = _("Data source for OGR access");
 	break;
     case G_OPT_V_MAPS:
 	Opt->key = "map";
@@ -337,7 +354,8 @@ struct Option *G_define_standard_option(int opt)
 	Opt->label = _("Layer number or name");
 	Opt->description =
 	    _("A single vector map can be connected to multiple database "
-	      "tables. This number determines which table to use.");
+	      "tables. This number determines which table to use. If reasonable '-1' selects all vector map layers. "
+	      "Layer name for OGR access.");
 	Opt->gisprompt = "old_layer,layer,layer";
 	break;
     case G_OPT_V_CAT: