Sfoglia il codice sorgente

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.

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@70204 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 8 anni fa
parent
commit
af6a5cbcef
1 ha cambiato i file con 1 aggiunte e 4 eliminazioni
  1. 1 4
      vector/v.out.ogr/args.c

+ 1 - 4
vector/v.out.ogr/args.c

@@ -21,10 +21,7 @@ void parse_args(int argc, char **argv,
 	  "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"