[GRASS-SVN] r70204 - grass/trunk/vector/v.out.ogr

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Jan 2 08:41:11 PST 2017


Author: martinl
Date: 2017-01-02 08:41:11 -0800 (Mon, 02 Jan 2017)
New Revision: 70204

Modified:
   grass/trunk/vector/v.out.ogr/args.c
Log:
v.out.ogr: define output as G_OPT_F_OUTPUT (reason: most of users want to export shapefiles or file based formats, the GUI currently lacks special widget as for export, so plain text widget is used. After this change at least browse button is available. PostGIS connection string can be typed manually.) This issue should be solved in the future by new GUI widget.

Modified: grass/trunk/vector/v.out.ogr/args.c
===================================================================
--- grass/trunk/vector/v.out.ogr/args.c	2017-01-02 16:20:35 UTC (rev 70203)
+++ grass/trunk/vector/v.out.ogr/args.c	2017-01-02 16:41:11 UTC (rev 70204)
@@ -21,10 +21,7 @@
 	  "by all output formats. Default is to use first type found in input vector map.");
     options->type->guisection = _("Selection");
 
-    options->dsn = G_define_option();
-    options->dsn->key = "output";
-    options->dsn->type = TYPE_STRING;
-    options->dsn->required = YES;
+    options->dsn = G_define_standard_option(G_OPT_F_OUTPUT);
     options->dsn->label = _("Name of output OGR datasource");
     options->dsn->description =
 	_("For example: ESRI Shapefile: filename or directory for storage\n"



More information about the grass-commit mailing list