Hello,
Here is the second draft version of my two little modules. I have implemented
the following changes:
- harmonized option names with general GRASS habits
- harmonized names of the two modules (*col for both instead of *column for one)
- now v.db.addcol accepts multiple columns
- added some little error checking
Any feedback welcome. If there are no serious problems, I will write the
description.html and check them into CVS pretty soon.
Moritz
(attachments)
v.db.addcol (2.01 KB)
v.db.updatecol (2.17 KB)
Hi Moritz
Hello,
Here is the second draft version of my two little modules. I have implemented
the following changes:
- harmonized option names with general GRASS habits
- harmonized names of the two modules (*col for both instead of *column for one)
- now v.db.addcol accepts multiple columns
- added some little error checking
Any feedback welcome. If there are no serious problems, I will write the
description.html and check them into CVS pretty soon.
Moritz
Attachment converted: APPLI:v.db.addcol ( / ) (004A5BE5)
Attachment converted: APPLI:v.db.updatecol 1 ( / ) (004A5BE6)
VERY GOOD !
I think that it's more easy for all user to add 1 only column any time with a choice list of type, not a box.
It's not need for me to add many columns in one commands (or you can repeat "name of new column" box and "type of the new column" list more times - 2 or 3)
Bye
--
________________________________________________________________________
|| Lorenzo Moretti e-mail: lorenzo.moretti@bologna.enea.it ||/|/| ENEA prot/idr Web: http://wwwamb.bologna.enea.it/ || | via Don Fiammelli, 2 FTP: ftp://ftpamb.bologna.enea.it/ (ris.)
~~~~~~ 40128 BOLOGNA - ITALY Ph: +39-0516098086 Fax: +39-0516098131
________________________________________________________________________
On Thu, May 26, 2005 11:26, Lorenzo Moretti said:
Hi Moritz
Hello,
Here is the second draft version of my two little modules. I have implemented
the following changes:
- harmonized option names with general GRASS habits
- harmonized names of the two modules (*col for both instead of
*column for one)
- now v.db.addcol accepts multiple columns
- added some little error checking
Any feedback welcome. If there are no serious problems, I will write the
description.html and check them into CVS pretty soon.
Moritz
Attachment converted: APPLI:v.db.addcol ( / ) (004A5BE5)
Attachment converted: APPLI:v.db.updatecol 1 ( / ) (004A5BE6)
VERY GOOD !
I think that it's more easy for all user to add 1 only column any
time with a choice list of type, not a box.
Yes, I thought this as well in the beginning, but as Radim confirmed, each
database backend supports different types of data, so it would be either very
limiting (just show some basic data types supported by all backends) or very
complicated (make a list of data types with a note on which backend supports
them or not...).
What do others think ?
Which data types are common to all backends ?
It's not need for me to add many columns in one commands (or you can
repeat "name of new column" box and "type of the new column" list
more times - 2 or 3)
I guess its about finding the compromise between "newbie-friendly" and flexible.
Feedback very welcome.
Moritz
Moritz Lennert wrote:
Yes, I thought this as well in the beginning, but as Radim confirmed, each
database backend supports different types of data, so it would be either very
limiting (just show some basic data types supported by all backends) or very
complicated (make a list of data types with a note on which backend supports
them or not...).
It is also practical in scripts to add more columns in one command.
What do others think ?
Which data types are common to all backends ?
Very few, AFAIK.
It's not need for me to add many columns in one commands (or you can
repeat "name of new column" box and "type of the new column" list
more times - 2 or 3)
I guess its about finding the compromise between "newbie-friendly" and flexible.
User friendly interface should be done on GUI level I think. You can write TclTk version of v.db.addcol which will change combo box with types according to selected driver, but it needs some programming.
Radim
Feedback very welcome.
Moritz
_______________________________________________
grass5 mailing list
grass5@grass.itc.it
http://grass.itc.it/mailman/listinfo/grass5