Opened 11 years ago

Closed 11 years ago

#213 closed defect (fixed)

digitizer: errors at copying categories

Reported by: msieczka Owned by: martinl
Priority: major Milestone: 6.4.0
Component: wxGUI Version: svn-develbranch6
Keywords: Cc: grass-dev@…
CPU: x86-64 Platform: Linux

Description

  1. enter digitizer
  1. select "Copy categories" tool
  1. pick a feature with the left mouse key
  1. press the middle key to de-select it
  1. pick the same feature again with the left key - error:
Traceback (most recent call last):
  File "/usr/local/grass-6.4.svn/etc/wxpython/gui_modules/ma
pdisp.py", line 923, in MouseActions

self.OnLeftUp(event)
  File "/usr/local/grass-6.4.svn/etc/wxpython/gui_modules/ma
pdisp.py", line 1336, in OnLeftUp

'distance=%f' % qdist])
  File
"/usr/local/grass-6.4.svn/etc/wxpython/gui_modules/gcmd.py",
line 365, in __init__

self.PrintModuleOutput()))
gui_modules.gcmd
.
CmdError

Change History (6)

comment:1 Changed 11 years ago by martinl

Cc: grass-dev@… added
Owner: changed from grass-dev@… to martinl
Status: newassigned

'Copy categories' is currently implemented only in slow 'vedit' interface (Config->Preferences->Advanced). For now I have disabled this tool when 'vdigit' is used. I tested 'vedit' interface, seems to work. Enough to close this ticket?

BTW: There are two important TODOs for vdigit:

  • implement 'copy category'
  • rewrite undo which is not working correctly now

Martin

comment:2 in reply to:  1 ; Changed 11 years ago by msieczka

Replying to martinl:

'Copy categories' is currently implemented only in slow 'vedit' interface (Config->Preferences->Advanced). For now I have disabled this tool when 'vdigit' is used. I tested 'vedit' interface, seems to work.

I tried the tool in vedit and no errors as I played around, but I didn't manage to copy a category from feature to feature. How does one actually use the tool?

Enough to close this ticket?

BTW: There are two important TODOs for vdigit:

  • implement 'copy category'
  • rewrite undo which is not working correctly now

Given that tickets fro these two issues are open, I guess we can close this one.

comment:3 in reply to:  2 ; Changed 11 years ago by martinl

Replying to msieczka:

I tried the tool in vedit and no errors as I played around, but I didn't manage to copy a category from feature to feature. How does one actually use the tool?

  • Select 'from' feature by left mouse button (click), right button to confirm selection.
  • Select 'to' feature by left mouse button (click), right button to confirm selection, categories are copied.

Martin

comment:4 in reply to:  3 Changed 11 years ago by msieczka

Replying to martinl:

Replying to msieczka:

I tried the tool in vedit and no errors as I played around, but I didn't manage to copy a category from feature to feature. How does one actually use the tool?

  • Select 'from' feature by left mouse button (click), right button to confirm selection.
  • Select 'to' feature by left mouse button (click), right button to confirm selection, categories are copied.

Using the tool exactly this way I still can't get it work (in vedit). Also, as I use it errors are printed:

Traceback (most recent call last):
  File "/usr/local/grass-6.4.svn/etc/wxpython/gui_modules/ma
pdisp.py", line 927, in MouseActions

self.OnLeftDown(event)
  File "/usr/local/grass-6.4.svn/etc/wxpython/gui_modules/ma
pdisp.py", line 1138, in OnLeftDown

if self.parent.dialogs['attributes'].IsShown():
  File "/usr/lib/python2.5/site-
packages/wx-2.8-gtk2-unicode/wx/_core.py", line 9110, in
IsShown

return _core_.Window_IsShown(*args, **kwargs)
TypeError
:
in method 'Window_IsShown', expected argument 1 of type
'wxWindow const *'

6.4 SVN r32000.

comment:5 Changed 11 years ago by martinl

Copy categories in now available in wxGUI/vdigit (r33166).

  1. Choose 'from' feature -- by left mouse button -- point (only one)
  2. Choose 'to' feature -- by left mouse button -- point or bbox (multiple allowed)

You can decide if to copy categories or duplicate attributes. It means to add new category and add records to the attribute table based on 'from' category(ies).

Please test. Martin

comment:6 Changed 11 years ago by martinl

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.