[GRASS-SVN] r70205 - in grass/branches/releasebranch_7_2: . vector/v.out.ogr

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Jan 2 09:00:07 PST 2017


Author: martinl
Date: 2017-01-02 09:00:07 -0800 (Mon, 02 Jan 2017)
New Revision: 70205

Modified:
   grass/branches/releasebranch_7_2/
   grass/branches/releasebranch_7_2/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. (merge r70204 from trunk)


Property changes on: grass/branches/releasebranch_7_2
___________________________________________________________________
Deleted: svn:mergeinfo
   - /grass/trunk:69619-69620

Modified: grass/branches/releasebranch_7_2/vector/v.out.ogr/args.c
===================================================================
--- grass/branches/releasebranch_7_2/vector/v.out.ogr/args.c	2017-01-02 16:41:11 UTC (rev 70204)
+++ grass/branches/releasebranch_7_2/vector/v.out.ogr/args.c	2017-01-02 17:00:07 UTC (rev 70205)
@@ -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