[GRASS5] v.db.updatecol and v.db.addcolumn
Radim Blazek
blazek at itc.it
Wed May 25 05:49:05 EDT 2005
Moritz Lennert wrote:
> Hello,
>
> As I mentioned in a separate mail, I agree with Daniel that using external
> (point-and-click) tools might not be the best way for GRASS attribute
> management.
>
> So, here are two small modules which interface db.execute for specific tasks,
> respectively adding a column and updating a column value. Others might follow
> according to need.
>
> Any feedback welcome.
>
> Moritz
Good, I'll use both.
v.db.addcolumn
--------------
I think that v.db.addcolumn should support the possibility to add more
columns in one step. It is however dangerous (name - type order for more
columns) to have column names and typse in 2 separated options. I
suggest one option columns in format
columns="name1 type1[, name2 type2, ...]"
the same option is already used in v.in.ascii.
Do you think that it is too difficult for users to write
columns="newcol integer"
instead of
colname=newcol coltype=integer
???
v.db.update
-----------
If possible, we should use the same names of options which are already
used in existing modules.
AFAIK in existing modules is used 'column', not 'colname'.
Also 'sqlwhere' should be replaced by simple 'where' which is used in
many other modules.
Radim
More information about the grass-dev
mailing list