[GRASS-user] Query by mouse

Dear GRASSusers,

I'm looking for a way for a multiple query with mouse on GRASS6.2 or 6.3.
The Query button in the Map Display of Gis Manager returns the values of the
active (highlighted) map only, even if more maps are displayed.

The r.what command accessed through Raster > Query by coordinate(s) requires
to define the coordinates (even if this is defined as optional) and the
mouse can not be used.

The d.what.rast (and d.where)can be used in command line mode (lower part of
the Output window)but requires the opening of a new external monitor
(Otherwise: No graphics device selected).

Accidentally I discovered a strange and atypical way for a multiple query.
I highligh the name of a map in the map list of the Gis Manager. In the
panel 'Display raster maps' I manually insert the names of the other maps to
query, separated by commas. At this point the Query button displays the
content of all specified maps. This works but doesn't seem a neat solution.

Does anybody suggest a better way for a multiple query?

Thanks in advance

Aldo Clerici

Your workaround is pretty neat. I don't know of any other at the moment
without some reprogramming of the UI. It's a nice idea though.

Michael

On 2/13/07 4:38 AM, "Aldo Clerici" <alcl01@ipruniv.cce.unipr.it> wrote:

Dear GRASSusers,

I'm looking for a way for a multiple query with mouse on GRASS6.2 or 6.3.
The Query button in the Map Display of Gis Manager returns the values of the
active (highlighted) map only, even if more maps are displayed.

The r.what command accessed through Raster > Query by coordinate(s) requires
to define the coordinates (even if this is defined as optional) and the
mouse can not be used.

The d.what.rast (and d.where)can be used in command line mode (lower part of
the Output window)but requires the opening of a new external monitor
(Otherwise: No graphics device selected).

Accidentally I discovered a strange and atypical way for a multiple query.
I highligh the name of a map in the map list of the Gis Manager. In the
panel 'Display raster maps' I manually insert the names of the other maps to
query, separated by commas. At this point the Query button displays the
content of all specified maps. This works but doesn't seem a neat solution.

Does anybody suggest a better way for a multiple query?

Thanks in advance

Aldo Clerici

__________________________________________
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

Aldo Clerici wrote:

I'm looking for a way for a multiple query with mouse on GRASS6.2 or
6.3. The Query button in the Map Display of Gis Manager returns the
values of the active (highlighted) map only, even if more maps are
displayed.

The r.what command accessed through Raster > Query by coordinate(s)
requires to define the coordinates (even if this is defined as
optional) and the mouse can not be used.

The d.what.rast (and d.where)can be used in command line mode (lower
part of the Output window)but requires the opening of a new external
monitor (Otherwise: No graphics device selected).

Accidentally I discovered a strange and atypical way for a multiple
query. I highligh the name of a map in the map list of the Gis
Manager. In the panel 'Display raster maps' I manually insert the
names of the other maps to query, separated by commas. At this point
the Query button displays the content of all specified maps. This
works but doesn't seem a neat solution.

Does anybody suggest a better way for a multiple query?

In an xmon if you overlay multiple raster maps,

G63> d.mon x0
G63> d.rast elevation.dem
G63> d.rast -o slope
G63> d.rast -o geology

then d.what.rast will give all three:

G63> d.what.rast -t
594278.69230769:4919478.84615385:1
elevation.dem@PERMANENT :1554:
slope@PERMANENT, quant :22:
slope@PERMANENT, actual :22.878124:23 degrees
geology@PERMANENT :5:limestone

The query in gis.m only queries the currenly selected map, even though
r.what (which it calls) has the capacity to query multiple maps at the
same time. Your "," trick works from that.

Another command prompt way using d.where:
G63> d.where | r.what in=elevation.dem,slope,geology

Hamish

Hi,

it wuold be trivial to add possibility to select multiple maps in
gis.m, but it will need to change every place where one layer is
assumed. This may be too much. Unless somebody provides a working
patch, this should be left for wx GUI.

Aldo Clerici, You can open a wish (featire request) at GRASS bug
tracker so it will not be lost.

Maris.

2007/2/14, Hamish <hamish_nospam@yahoo.com>:

Aldo Clerici wrote:
> I'm looking for a way for a multiple query with mouse on GRASS6.2 or
> 6.3. The Query button in the Map Display of Gis Manager returns the
> values of the active (highlighted) map only, even if more maps are
> displayed.
>
> The r.what command accessed through Raster > Query by coordinate(s)
> requires to define the coordinates (even if this is defined as
> optional) and the mouse can not be used.
>
> The d.what.rast (and d.where)can be used in command line mode (lower
> part of the Output window)but requires the opening of a new external
> monitor (Otherwise: No graphics device selected).
>
> Accidentally I discovered a strange and atypical way for a multiple
> query. I highligh the name of a map in the map list of the Gis
> Manager. In the panel 'Display raster maps' I manually insert the
> names of the other maps to query, separated by commas. At this point
> the Query button displays the content of all specified maps. This
> works but doesn't seem a neat solution.
>
> Does anybody suggest a better way for a multiple query?

In an xmon if you overlay multiple raster maps,

G63> d.mon x0
G63> d.rast elevation.dem
G63> d.rast -o slope
G63> d.rast -o geology

then d.what.rast will give all three:

G63> d.what.rast -t
594278.69230769:4919478.84615385:1
elevation.dem@PERMANENT :1554:
slope@PERMANENT, quant :22:
slope@PERMANENT, actual :22.878124:23 degrees
geology@PERMANENT :5:limestone

The query in gis.m only queries the currenly selected map, even though
r.what (which it calls) has the capacity to query multiple maps at the
same time. Your "," trick works from that.

Another command prompt way using d.where:
G63> d.where | r.what in=elevation.dem,slope,geology

Hamish

_______________________________________________
grassuser mailing list
grassuser@grass.itc.it
http://grass.itc.it/mailman/listinfo/grassuser