[GRASS-dev] v.in.db should look for file

Michael Barton michael.barton at asu.edu
Sun Mar 1 01:06:26 EST 2009


Now that Martin fixed the wxPython gui for v.in.db, I see a problem I  
had not previously noticed. That is, the module looks for vector  
tables. However, the objective of this module is to find a database  
table (recognized by a GRASS driver) anywhere on a user's computer and  
create vector points from its x and y coordinates.

So instead of looking for a vector table, it should be looking for a  
file. In main.c (lines 56-58), would this be ...

     table_opt = G_define_standard_option(G_OPT_F_INPUT);
     table_opt->required = YES;
     table_opt->description = _("Input table name");

instead of the current...

     table_opt = G_define_standard_option(G_OPT_TABLE);
     table_opt->required = YES;
     table_opt->description = _("Input table name");


??

I'd change this, but I'm not sure if anything else needs to change too.

Michael


More information about the grass-dev mailing list