[GRASS-dev] [grass-code I][444] v.in.ogr: false optional 'dsn' and 'output'

grass-codei at wald.intevation.org grass-codei at wald.intevation.org
Tue Jul 10 06:36:54 EDT 2007


code I item #444, was opened at 2007-07-10 12:36
Status: Open
Priority: 3
Submitted By: Maciej Sieczka (msieczka)
Assigned to: Nobody (None)
Summary: v.in.ogr: false optional 'dsn' and 'output' 
Issue type: module bug
Issue status: None
GRASS version: CVS HEAD
GRASS component: vector
Operating system: all
Operating system version: 
GRASS CVS checkout date, if applies (YYMMDD): 070710


Initial Comment:
v.in.ogr advertises the 'dsn' and 'output' as optional in 6.3 CVS:

GRASS 6.3.cvs (spearfish60):~ > v.in.ogr help 2>&1 | grep Usage -A1
Usage:
 v.in.ogr [-lfcztoew] [dsn=string] [output=name]

(see the brackets around options dsn and output; their presence is interpreted as "optional" by the autogenerated tcl/tk GUI)



In current CVS GRASS 6.2 these options are required:

GRASS 6.2.2cvs (spearfish60):~ > v.in.ogr help 2>&1 | grep Usage -A1
Usage:
 v.in.ogr [-lfcztoe] dsn=string output=name [layer=string[,string,...]]

(no brackets around options dsn and output)

And they should be required for sure:

$ v.in.ogr -l dsn=.
Data source contains 11 layers:
cieki, drogi, laka, las, park, rowy, sciezki, waly, woda, zabudowa, zarosla

$ v.in.ogr out=something
ERROR: Required parameter <dsn> not set

$ v.in.ogr dsn=.
ERROR: Required parameter <output> not set

$ v.in.ogr dsn=cieki.shp
ERROR: Required parameter <output> not set

Maciek


----------------------------------------------------------------------

You can respond by visiting: 
http://wald.intevation.org/tracker/?func=detail&atid=204&aid=444&group_id=21




More information about the grass-dev mailing list