#1519: Opening a saved workspace doesn't display all layers correctly in 6.4.2RC2
--------------------+-------------------------------------------------------
Reporter: shanel | Owner: grass-dev@…
Type: defect | Status: new
Priority: minor | Milestone: 6.4.2
Component: wxGUI | Version: 6.4.2 RCs
Keywords: | Platform: Linux
Cpu: x86-64 |
--------------------+-------------------------------------------------------
Hi all,
have just compiled/installed 6.4.2RC2 on Ubuntu 10.04. Seemed to go OK.
A glitch I noted on user list (but didn't report a bug for) in ~RC1 still
seems to be there in wxpython gui. When I open a saved workspace with e.g.
a background raster layer, and two vector (boundary/centroid/area) layers:
whilst loading in the map display, the vectors are visible, when the
(larger filesize) raster completes loading, it is the only layer visible
despite the two vectors being listed as 'above' it and 'visible' in the
manager GUI. If I uncheck/re-check just one of the vector layers in the
manager, it refreshed the map display and all the layers then seem to
display as expected.
If any more detail required on system specs just ask
#1519: Opening a saved workspace doesn't display all layers correctly in 6.4.2RC2
--------------------+-------------------------------------------------------
Reporter: shanel | Owner: grass-dev@…
Type: defect | Status: new
Priority: minor | Milestone: 6.4.2
Component: wxGUI | Version: 6.4.2 RCs
Keywords: | Platform: Linux
Cpu: x86-64 |
--------------------+-------------------------------------------------------
Comment(by shanel):
I found that if I have multiple displays in a saved GRASS workspace, then
upon opening, the earlier displays will end up displaying correctly,
through to the last display which will be the only one exhibiting this
error.
#1519: Opening a saved workspace doesn't display all layers correctly in 6.4.2RC2
--------------------+-------------------------------------------------------
Reporter: shanel | Owner: grass-dev@…
Type: defect | Status: new
Priority: minor | Milestone: 6.4.2
Component: wxGUI | Version: 6.4.2 RCs
Keywords: | Platform: Linux
Cpu: x86-64 |
--------------------+-------------------------------------------------------
Comment(by shanel):
Have just tried in svn version 50505 on 28 Jan 2012; still find bug.
Repeated it using North Carolina dataset by following steps:
1. open GRASS in NC/Permanent
2. add raster > soilsID
3. add vector > busroute1
4. add vector > zipcodes_wake #optionally adjust line/fill colours e.g. for zipcodes, don't display area
so raster is visible
5. save this as a workspace
6. close GRASS/workspace, open it from the saved file
> it seems to show busroute, then zipcode bdy and soils flash up, then
display finishes with only soilsID raster visible.
7. uncheck top item in Display manager i.e. zipcodes vector
> display then refreshes and shows busroute vector over soils raster.
8. checking zipcodes again displays all three layers.
output from terminal when I open the saved workspace (debug=5 output)
attached as a file for reference.
#1519: Opening a saved workspace doesn't display all layers correctly in 6.4.2RC2
-------------------------+--------------------------------------------------
Reporter: shanel | Owner: grass-dev@…
Type: defect | Status: closed
Priority: minor | Milestone: 6.4.2
Component: wxGUI | Version: 6.4.2 RCs
Resolution: worksforme | Keywords: workspace
Platform: Linux | Cpu: x86-64
-------------------------+--------------------------------------------------
Changes (by shanel):
* status: new => closed
* resolution: => worksforme
Comment:
Hi Anna,
I have just updated svn (50521?) and opened a saved workspace, it seems to
work
No other major side-effects noticed but have not given GRASS an intensive
workout yet today.
I have changed the status to resolved-worksforme I hope that's not being
too ambitious in playing with its status? Will leave it for others with
better knowledge to change its status any further.
Thanks for figuring it out
-shane.
Replying to [comment:4 annakrat]:
> The problem is in wxgui.py in LoadWorkspaceFile():
>
> {{{
> if maptree:
> # reverse list of map layers
> maptree.Map.ReverseListOfLayers()
> }}}
>
> I removed this code in r50511 and it seems to be ok then. Backported to
6.5 and 7 too.
>
> Anna