[GRASS-SVN] r65625 - in grass/trunk/vector: v.external v.in.ogr

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Jul 19 07:44:34 PDT 2015


Author: martinl
Date: 2015-07-19 07:44:34 -0700 (Sun, 19 Jul 2015)
New Revision: 65625

Modified:
   grass/trunk/vector/v.external/args.c
   grass/trunk/vector/v.in.ogr/main.c
Log:
v.in.ogr/v.external: define gisprompt for input/layer to enable GdalSelect/LayersList to be used


Modified: grass/trunk/vector/v.external/args.c
===================================================================
--- grass/trunk/vector/v.external/args.c	2015-07-19 14:43:47 UTC (rev 65624)
+++ grass/trunk/vector/v.external/args.c	2015-07-19 14:44:34 UTC (rev 65625)
@@ -17,7 +17,8 @@
 				  "\t\tMapInfo File: directory containing a mapinfo file\n"
 				  "\t\tPostGIS database: connection string, eg. 'PG:dbname=db user=grass'");
     options->dsn->required = YES;
-
+    options->dsn->gisprompt = "old,datasource,datasource";
+    
     options->layer = G_define_option();
     options->layer->key = "layer";
     options->layer->type = TYPE_STRING;
@@ -30,7 +31,8 @@
 				    "\t\tPostGIS database: table name");
     options->layer->required = YES;
     options->layer->key_desc = "name";
-    
+    options->layer->gisprompt = "old,datasource_layer,datasource_layer";
+        
     options->output = G_define_standard_option(G_OPT_V_OUTPUT);
     options->output->required = NO;
     options->output->description = _("Name for output GRASS vector map (default: input layer)");

Modified: grass/trunk/vector/v.in.ogr/main.c
===================================================================
--- grass/trunk/vector/v.in.ogr/main.c	2015-07-19 14:43:47 UTC (rev 65624)
+++ grass/trunk/vector/v.in.ogr/main.c	2015-07-19 14:44:34 UTC (rev 65625)
@@ -143,6 +143,7 @@
     param.dsn->description = _("Examples:\n"
 				   "\t\tESRI Shapefile: directory containing shapefiles\n"
 				   "\t\tMapInfo File: directory containing mapinfo files");
+    param.dsn->gisprompt = "old,datasource,datasource";
     
     param.layer = G_define_option();
     param.layer->key = "layer";
@@ -154,7 +155,8 @@
     param.layer->description =
 	_("Examples:\n" "\t\tESRI Shapefile: shapefile name\n"
 	  "\t\tMapInfo File: mapinfo file name");
-    param.layer->guisection = _("Selection");
+    param.layer->guisection = _("Layer");
+    param.layer->gisprompt = "old,datasource_layer,datasource_layer";
 
     param.out = G_define_standard_option(G_OPT_V_OUTPUT);
     param.out->required = NO;



More information about the grass-commit mailing list