Opened 15 years ago

Last modified 9 years ago

#632 new defect

d.vect.thematic doesn't re-run upon zoom in the GUI

Reported by: voncasec Owned by: grass-dev@…
Priority: normal Milestone: 6.4.6
Component: wxGUI Version: 6.4.0 RCs
Keywords: d.vect.thematic Cc:
CPU: Unspecified Platform: Linux

Description

Hi everyone, I have noticed what seems to me to be a bug with displaying thematic map layers in Grass 6.4 RC4 using Ubuntu 8.10.

When a thematic layer is displayed based on the attributes of a point file, the initial thematic map display seems fine (i.e. the graduated point symbols correspond with the locations of the point data in x,y space). However, if I zoom in or out of the data or pan to a different region, the thematic map layer does not zoom or pan with the the vector layers or raster layers also being displayed, the graduated symbols seem fixed to the display not associated with the point file that was used to create it.

Change History (8)

comment:1 by hamish, 15 years ago

Keywords: d.vect.thematic added

which GUI? wxPython or gis.m?

comment:2 by yytsui, 15 years ago

It's wxPython. I tried Grass7.0 trunk today Rev:38333, it also does not work.

comment:3 by martinl, 15 years ago

Component: defaultwxGUI

comment:4 by yytsui, 15 years ago

I spent sometime to look into this issue and consider using FloatCanvas http://trac.paulmcnett.com/floatcanvas/wiki to fixed this bug. However, If we use FloatCanvas to display maps, that means probably a lot of codes in gui/wxpython/gui_modules/mapdisp.py, mapdisp_windows.py ,wxgui_utils and render.py has to be change. Anyone know how much effort this might cause? And I just sent an email to FloatCanvas mailing list to ask whether does FloatCanavas support multilayer. Any suggestion? Thanks

in reply to:  4 comment:5 by martinl, 15 years ago

Replying to yytsui:

I spent sometime to look into this issue and consider using FloatCanvas http://trac.paulmcnett.com/floatcanvas/wiki to fixed this bug. However, If we use FloatCanvas to display maps, that means probably a lot of codes in gui/wxpython/gui_modules/mapdisp.py, mapdisp_windows.py ,wxgui_utils and render.py has to be change. Anyone know how much effort this might cause? And I just sent an email to

probably quite a lot of work. If you start I would suggest to make a fork of wxGUI in grass-addons and later to merge it into trunk.

comment:6 by cmbarton, 15 years ago

I looked at FloatCanvas quite a while ago. It is nice, but it is much simpler that we need for GRASS. The GRASS canvas does what FloatCanvas does, but a lot more.

d.vect.thematic was written (by me and enhanced by others) as a shell script wrapper around d.vect. When it was written, all GRASS displays still used d.mon via an xterm. It still works in the display environment of TclTk and wxPython canvases, but not as well.

We could add the newer module d.thematic.area to the layer tree selections. I've done that for GRASS 7. I don't know if that would be permitted for GRASS 6.4 as it is sort of a feature change (though it shouldn't break anything). We could also enhance d.vect.thematic by 'Pythonizing' it. Glynn has done that for GRASS 7, but I haven't yet had the chance to test it.

Ultimately, we are aware that we need to create a new and improved Python script or an extended C module. As of a few days ago, I think that the C module seems to be the direction we are headed. Any help would be appreciated.

Michael

comment:7 by hamish, 13 years ago

Summary: Thematic Mapsd.vect.thematic doesn't re-run upon zoom in the GUI

comment:8 by neteler, 9 years ago

Milestone: 6.4.06.4.6
Note: See TracTickets for help on using tickets.