'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
Replying to [comment:1 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.
Replying to [comment:2 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.
Replying to [comment:3 martinl]:
> Replying to [comment:2 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 *'
}}}
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).