Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#1617 closed bug (fixed)

update of raster layers in GRASS modules

Reported by: pcav Owned by: nobody
Priority: major: does not work as expected Milestone: Version 1.0.3
Component: GRASS Version: Trunk
Keywords: Cc: rblazek
Must Fix for Release: No Platform: Debian
Platform Version: Awaiting user input: no

Description

When running GRASS analyses, the update behaviour of raster maps is inconsistent: some modules show new maps as soon as they are produced, others require closing the module and reopening it. Even worst, possibly as a result of this, maps are sometimes silently updated, and analyses are run on the wrong (updated) map, instead of on this shown by the dropdown menu. This can obviously lead to wrong results

Change History (5)

comment:1 by rblazek, 15 years ago

Can you specify the steps to reproduce the problem? The list of maps in comboboxes is updated whenever maps in legend are changed (i.e. usually if a new map is added to the canvas). Note that only the maps visualized in QGIS are listed. ( connect( canvas, SIGNAL( layersChanged() ), this, SLOT( updateQgisLayers() ) ); )

For using wrong maps after update you are right, I have found the bug.

Radim

comment:2 by pcav, 15 years ago

Sorry I was unclear: some modules (e.g. r.mapcalculator) have a "View output" button, others (e.g. r.surf.fractal) does not.

comment:3 by rblazek, 15 years ago

(Un)fortunately this inconsistency comes from GRASS. If a module has defined output option in GRASS correctly the button 'View output' is added. You can check this if you run the command with --interface-description. The output option should have <gisprompt age="new" element="cell" prompt="raster" /> tag.

r.surf.fractal did not have the output defined correctly, which was however fixed already: http://trac.osgeo.org/grass/changeset/34761

Radim

comment:4 by rblazek, 15 years ago

Resolution: fixed
Status: newclosed

Fixed in revision 10812.

Work sponsored by http://www.faunalia.it

Radim

comment:5 by rblazek, 15 years ago

Cc: rblazek added
Note: See TracTickets for help on using tickets.