Opened 15 years ago
Closed 14 years ago
#950 closed defect (fixed)
Error opening workspace file
Reported by: | epatton | Owned by: | martinl |
---|---|---|---|
Priority: | normal | Milestone: | 6.5.0 |
Component: | wxGUI | Version: | svn-develbranch6 |
Keywords: | gui, workspace | Cc: | grass-dev@… |
CPU: | x86-64 | Platform: | Linux |
Description
I get the following error after trying to open a workspace file in Grass 6.5.svn:
Traceback (most recent call last): File "/usr/local/grass-6.5.svn/etc/wxpython/wxgui.py", line 622, in OnWorkspaceOpen self.LoadWorkspaceFile(filename) File "/usr/local/grass-6.5.svn/etc/wxpython/wxgui.py", line 717, in LoadWorkspaceFile lvdigit=layer['vdigit']) KeyError : 'vdigit'
This error only seems to manifest itself when layer group folders are used.
To replicate error (in North Carolina dataset, Grass 6.5.svn):
- start wxpthon gui, add vectors streams, lakes, geodetic_pts. Add raster elevation.
- Save the workspace.
- Exit Grass, start Grass, load workspace, everything works ok.
- add layer group folder, drag vectors into folder. Save workspace and exit Grass.
- Start Grass, load workspace; wxgui gives the same error as above.
~ Eric.
Attachments (2)
Change History (10)
comment:1 by , 15 years ago
Cc: | added |
---|---|
Owner: | changed from | to
Status: | new → assigned |
follow-up: 4 comment:2 by , 15 years ago
Thanks Martin, all workspaces with nested folders can be saved and opened normally in 6.4, 6.5 and trunk. The only problem I noticed was in trunk, where vector line widths are displayed at a width of 1, not at the width they were saved at in the original workspace file. In fact, the displayed widths remain at 1 no matter what they are set at in the Properties dialog. But other than that, everything looks great!
Thanks,
~ Eric.
by , 15 years ago
Attachment: | Situation_Before.png added |
---|
by , 15 years ago
Attachment: | Situation_After.png added |
---|
follow-up: 5 comment:3 by , 15 years ago
I've noticed a small error upon closer inspection; I've attached two images illustrating the problem. In the first image 'Situation_Before.png', there are folders named Amundsen and Nahidik each with many vector layers. They are child folders of the parent folder Navgation. I save the workspace file, exit Grass, and restart, and open the workspace file - the result is in the image 'Situation_After.png'. The vectors that were inside the Amundsen and Nahidik folders are no longer nested to the correct depth, and are now children of the Navigation folder.
~ Eric.
comment:4 by , 15 years ago
Replying to epatton:
Thanks Martin, all workspaces with nested folders can be saved and opened normally in 6.4, 6.5 and trunk. The only problem I noticed was in trunk, where vector line widths are displayed at a width of 1, not at the width they were saved at in the original workspace file. In fact, the displayed widths remain at 1 no matter what they are set at in the Properties dialog. But other than that, everything looks great!
testing with trunk, r41161
- add vector map, set width to 2
- save workspace
- restart wxGUI
- open workspace
- width is set to 2
?
Martin
comment:5 by , 15 years ago
Replying to epatton:
I've noticed a small error upon closer inspection; I've attached two images illustrating the problem. In the first image 'Situation_Before.png', there are folders named Amundsen and Nahidik each with many vector layers. They are child folders of the parent folder Navgation. I save the workspace file, exit Grass, and restart, and open the workspace file - the result is in the image 'Situation_After.png'. The vectors that were inside the Amundsen and Nahidik folders are no longer nested to the correct depth, and are now children of the Navigation folder.
follow-up: 7 comment:6 by , 15 years ago
Thanks Martin, I can confirm nested folders retain their positions after reopening workspace files.
Can you confirm this behavior - I'm not sure what is happening here - if you have a folder with a few layers inside, and drag the folder's position around so it is above or below other folders or layers in the layer manager, a layer always seems to get dropped from the folder after the move is completed.
Should I file this under another bug?
~ Eric.
comment:7 by , 15 years ago
Replying to epatton:
Can you confirm this behavior - I'm not sure what is happening here - if you have a folder with a few layers inside, and drag the folder's position around so it is above or below other folders or layers in the layer manager, a layer always seems to get dropped from the folder after the move is completed.
Should I file this under another bug?
yes, please do it. Martin
comment:8 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Please try r41120 (trunk) r41121 (devbr6).