[GRASS-dev] Re: R: [GRASS-user] List of commands available through GIS Manger (6.2/6.3)

On 23/03/07 17:13, Aldo Clerici wrote:

Thanks Huub,
but my question is a bit different. I'd like to know which commands are attainable through the buttons and menus of GIS Manager.

A few months ago, I had suggested the beginning of a possible response to that, but never got any feedback, so I dropped it:
http://grass.itc.it/pipermail/grassuser/2006-November/037031.html

Maybe someone wants to pick this up ?

For example I found:

*v.db.addcol* (Databases > Manage database > Add columns to table)

*v.db.update* (Databases > Manage database > Change values in a column)**

**

**

But not:

They are in the Vector menu

*v.db.addtable*

*v.db.droptable*

vector<->database connection

*v.db.select*

I don't think this is implemented in gis.m. You can part of the functionality through "Show attribute data" button in the vector options panel.

Moritz

This is a question of usability. I don't know which is best. When I first
re-organized the menus, I wondered where to put "dabase" commands that dealt
exclusively with attribute tables linked with vectors. I originally put
under the vector heading those those that require you to specify a vector
map and put those more general database commands under the database heading.

These have become a bit mixed up of late and the relatively new v.db.select
has not yet been added.

So where do these commands make more sense?

The vector attribute ones under the vector heading? Or all under the
database heading?

Michael

On 3/23/07 9:33 AM, "Moritz Lennert" <mlennert@club.worldonline.be> wrote:

On 23/03/07 17:13, Aldo Clerici wrote:

Thanks Huub,
but my question is a bit different. I'd like to know which commands are
attainable through the buttons and menus of GIS Manager.

A few months ago, I had suggested the beginning of a possible response
to that, but never got any feedback, so I dropped it:
http://grass.itc.it/pipermail/grassuser/2006-November/037031.html

Maybe someone wants to pick this up ?

For example I found:

*v.db.addcol* (Databases > Manage database > Add columns to table)

*v.db.update* (Databases > Manage database > Change values in a column)**

**

**

But not:

They are in the Vector menu

*v.db.addtable*

*v.db.droptable*

vector<->database connection

*v.db.select*

I don't think this is implemented in gis.m. You can part of the
functionality through "Show attribute data" button in the vector options
panel.

Moritz

__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

On 24/03/07 01:48, Michael Barton wrote:

This is a question of usability. I don't know which is best. When I first
re-organized the menus, I wondered where to put "dabase" commands that dealt
exclusively with attribute tables linked with vectors. I originally put
under the vector heading those those that require you to specify a vector
map and put those more general database commands under the database heading.

These have become a bit mixed up of late and the relatively new v.db.select
has not yet been added.

So where do these commands make more sense?

The vector attribute ones under the vector heading? Or all under the
database heading?

I have no opinion on that. Maybe all under the database heading might be the more logical...or have it under both as Mars suggests.

I think the more fundamental issue is to allow people to find under which menu and heading which commands are "hidden", thus making the move between CLI command names and GUI menu names easier.

This is what I aimed at with this script:

grep G_msg gui/tcltk/menus/menu.tcl | awk -F"\""
'{if(substr($2,1,1)=="&") {gsub("&","",$2);top=$2} else {if($4=="")
second=$2; else print $4": "top"->"second"->"$2}}'

which gives for each command something like:

r.surf.fractal: Raster->Generate surfaces->Generate fractal surface

But it only works if you have three levels, if you have more levels it doesn't work, i.e.:

r.in.gdal: File->Import->Raster map->Multiple formats using GDAL

becomes

r.in.gdal: File->Raster map->Multiple formats using GDAL

Just a little bit more of awk (or other language) needed to solve this.

Moritz