#259: wxGUI: visualization problems with multiple rasters and vectors. not stable
bug...
----------------------+-----------------------------------------------------
Reporter: giohappy | Owner: grass-dev@lists.osgeo.org
Type: defect | Status: new
Priority: major | Milestone: 6.4.0
Component: wxGUI | Version: svn-develbranch6
Keywords: | Platform: Linux
Cpu: x86-32 |
----------------------+-----------------------------------------------------
I find difficult to describe this problem because it seems to happen
randomly. I can't find a rule...
If I add various rasters and vectors I often have problems in the
visualization. I try to describe some situations I have faced using
1,2,3,...,n to define the layers from bottom to the top of the stack:
'''FIRST CASE'''
(3) points vector
(2) raster
(1) raster
it happens that (2) hides the points layer. If I switch off raster (2) I
can see the points again. If I move up and down various times the vector
in the layer manager... magically it gets workin correctly: I see the
whoole stack in the map window.
'''SECOND CASE'''
(3) points vector
(2) polygons vector
(1) raster
Same as above. Sometimes (not always) the layer (2) hides layer (1). If I
randomly switch on and off, move up and down, the layers... sometimes I
can see the things as they should.
You can see this case in the image attached: the points aren't visible.
I know it's too generic, but I really can't be more accurate in the
description.
Anyway I hope it helps...
#259: wxGUI: visualization problems with multiple rasters and vectors. not stable
bug...
-----------------------+----------------------------------------------------
Reporter: giohappy | Owner: grass-dev@lists.osgeo.org
Type: defect | Status: new
Priority: major | Milestone: 6.4.0
Component: wxGUI | Version: svn-develbranch6
Resolution: | Keywords:
Platform: Linux | Cpu: x86-32
-----------------------+----------------------------------------------------
Comment (by cmbarton):
Please specify which version you are using and exactly when you got it. A
series of problems that sound like this were fixed over the past several
weeks in GRASS 6.4 and GRASS 7.
#259: wxGUI: visualization problems with multiple rasters and vectors. not stable
bug...
-----------------------+----------------------------------------------------
Reporter: giohappy | Owner: grass-dev@lists.osgeo.org
Type: defect | Status: new
Priority: major | Milestone: 6.4.0
Component: wxGUI | Version: svn-develbranch6
Resolution: | Keywords:
Platform: Linux | Cpu: x86-32
-----------------------+----------------------------------------------------
Comment (by cmbarton):
I can confirm this behavior. It looks like recent changes have caused this
to happen again. I just submitted a bug fix to the GRASS 6.4 and GRASS 7
source trees that I hope will fix it for good. Could you please test? I'll
keep this open until I hear back.
#259: wxGUI: visualization problems with multiple rasters and vectors. not stable
bug...
-----------------------+----------------------------------------------------
Reporter: giohappy | Owner: grass-dev@lists.osgeo.org
Type: defect | Status: new
Priority: major | Milestone: 6.4.0
Component: wxGUI | Version: svn-develbranch6
Resolution: | Keywords:
Platform: Linux | Cpu: x86-32
-----------------------+----------------------------------------------------
Comment (by cmbarton):
I can confirm this behavior. It looks like recent changes have caused this
to happen again. I just submitted a bug fix to the GRASS 6.4 and GRASS 7
source trees that I hope will fix it for good. Could you please test? I'll
keep this open until I hear back.
It looks like this didn't fix this problem. I'm not sure if it's a rendering problem in in g.pnmcomp or something in the wxPython rendering engine. Whenever more than 2-3 maps are overlayed, only the top couple are displayed. The lower ones become completely obscured by the upper ones--or are not rendered at all. The overlay flag is checked for rasters and there should be no overlay issues with grids, or vector lines/points anyway.
#259: wxGUI: visualization problems with multiple rasters and vectors. not stable
bug...
-----------------------+----------------------------------------------------
Reporter: giohappy | Owner: grass-dev@lists.osgeo.org
Type: defect | Status: new
Priority: major | Milestone: 6.4.0
Component: wxGUI | Version: svn-develbranch6
Resolution: | Keywords:
Platform: Linux | Cpu: x86-32
-----------------------+----------------------------------------------------
Comment (by giohappy):
Thanks Michael.
It seems to work now. Let's keep this open for one day more, so I can do
more tests.
Two remarks:
1 - about the FIRST CASE (add a raster and a point, and then add another
raster between the twos), it needs the "re-render" button to be used,
because the "display map" isn't enough: the new raster hides the points.
Why don't we use the same method of all the other GIS: when one adds a
layer, the map is automatically rebuilt. It would avoid having to push the
"display" and the "re-render" buttons every time...
It could be in option in the preferences.
2 - the "fcolor" option of polygons in tcltk permits to choose the "None"
value to do not make the polygons filled. This option doesn't appear in
wxGUI, in which one is obligated to choose a color. The same for lines...
#259: wxGUI: visualization problems with multiple rasters and vectors. not stable
bug...
-----------------------+----------------------------------------------------
Reporter: giohappy | Owner: grass-dev@lists.osgeo.org
Type: defect | Status: new
Priority: major | Milestone: 6.4.0
Component: wxGUI | Version: svn-develbranch6
Resolution: | Keywords:
Platform: Linux | Cpu: x86-32
-----------------------+----------------------------------------------------
Comment (by martinl):
Replying to [comment:4 giohappy]:
new raster hides the points. Why don't we use the same method of all the
other GIS: when one adds a layer, the map is automatically rebuilt. It
would avoid having to push the "display" and the "re-render" buttons every
time...
#259: wxGUI: visualization problems with multiple rasters and vectors. not stable
bug...
-----------------------+----------------------------------------------------
Reporter: giohappy | Owner: grass-dev@lists.osgeo.org
Type: defect | Status: new
Priority: major | Milestone: 6.4.0
Component: wxGUI | Version: svn-develbranch6
Resolution: | Keywords:
Platform: Linux | Cpu: x86-32
-----------------------+----------------------------------------------------
Comment (by martinl):
Replying to [comment:4 giohappy]:
> 2 - the "fcolor" option of polygons in tcltk permits to choose the
"None" value to do not make the polygons filled. This option doesn't
appear in wxGUI, in which one is obligated to choose a color. The same for
lines...
#259: wxGUI: visualization problems with multiple rasters and vectors. not stable
bug...
-----------------------+----------------------------------------------------
Reporter: giohappy | Owner: grass-dev@lists.osgeo.org
Type: defect | Status: new
Priority: major | Milestone: 6.4.0
Component: wxGUI | Version: svn-develbranch6
Resolution: | Keywords:
Platform: Linux | Cpu: x86-32
-----------------------+----------------------------------------------------
Comment (by giohappy):
Replying to [comment:5 martinl]:
> Do you mean "render" checkbox in status bar?
>
I mean: the "FIRST CASE" problem I've descriped is solved only if I click
on the "re-render" button in the Map window top-bar. If I only click the
"Draw" button (the first from left) the rendered raster hides the top,
point, layer. It happens only if I add the raster in a second moment
layer, after having loaded the point layers.
IMHO a modern GIS should automatically manage the display of the layers as
the user interact with the Layer Manager. For example, if a user add a
layer, it should be automatically added to the Map, triggering the "draw"
or the "re-render" action...
#259: wxGUI: visualization problems with multiple rasters and vectors. not stable
bug...
-----------------------+----------------------------------------------------
Reporter: giohappy | Owner: grass-dev@lists.osgeo.org
Type: defect | Status: closed
Priority: major | Milestone: 6.4.0
Component: wxGUI | Version: svn-develbranch6
Resolution: fixed | Keywords:
Platform: Linux | Cpu: x86-32
-----------------------+----------------------------------------------------
Comment (by glynn):
Replying to [comment:7 giohappy]:
> IMHO a modern GIS should automatically manage the display of the layers
as the user interact with the Layer Manager. For example, if a user add a
layer, it should be automatically added to the Map, triggering the "draw"
or the "re-render" action...
The main issue here is that Tk doesn't support masked, true-colour images;
it supports GIF (masked, 256 colours) or PPM (true-colour, no mask). So
you can't take the approach that you would in a C program, i.e. load all
of the layers, then just redraw whenever the layer stack changes.
Instead, it has to store the layers as image files. Whenever the layer
stack changes, it has to call an external program (g.pnmcomp) to compose
the layers into a single image, which it then loads and displays.
The end result is that changing the set of layers could realistically be a
hundred times slower than the ideal case (storing the layers in video
memory, and having the GPU compose them).
So, automatic updates should probably be user-selectable.