[GRASS-dev] [GRASS GIS] #213: digitizer: errors at copying categories

#213: digitizer: errors at copying categories
----------------------+-----------------------------------------------------
Reporter: msieczka | 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-64 |
----------------------+-----------------------------------------------------
1. enter digitizer

2. select "Copy categories" tool

3. pick a feature with the left mouse key

4. press the middle key to de-select it

5. 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
}}}

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/213&gt;
GRASS GIS <http://grass.osgeo.org>

#213: digitizer: errors at copying categories
-----------------------+----------------------------------------------------
  Reporter: msieczka | Owner: martinl
      Type: defect | Status: assigned
  Priority: major | Milestone: 6.4.0
Component: wxGUI | Version: svn-develbranch6
Resolution: | Keywords:
  Platform: Linux | Cpu: x86-64
-----------------------+----------------------------------------------------
Changes (by martinl):

  * status: new => assigned
  * owner: grass-dev@lists.osgeo.org => martinl
* cc: grass-dev@lists.osgeo.org (added)

Comment:

'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

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/213#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#213: digitizer: errors at copying categories
-----------------------+----------------------------------------------------
  Reporter: msieczka | Owner: martinl
      Type: defect | Status: assigned
  Priority: major | Milestone: 6.4.0
Component: wxGUI | Version: svn-develbranch6
Resolution: | Keywords:
  Platform: Linux | Cpu: x86-64
-----------------------+----------------------------------------------------
Comment (by msieczka):

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.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/213#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#213: digitizer: errors at copying categories
-----------------------+----------------------------------------------------
  Reporter: msieczka | Owner: martinl
      Type: defect | Status: assigned
  Priority: major | Milestone: 6.4.0
Component: wxGUI | Version: svn-develbranch6
Resolution: | Keywords:
  Platform: Linux | Cpu: x86-64
-----------------------+----------------------------------------------------
Comment (by 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.

Martin

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/213#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>

#213: digitizer: errors at copying categories
-----------------------+----------------------------------------------------
  Reporter: msieczka | Owner: martinl
      Type: defect | Status: assigned
  Priority: major | Milestone: 6.4.0
Component: wxGUI | Version: svn-develbranch6
Resolution: | Keywords:
  Platform: Linux | Cpu: x86-64
-----------------------+----------------------------------------------------
Comment (by msieczka):

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 *'
}}}

6.4 SVN r32000.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/213#comment:4&gt;
GRASS GIS <http://grass.osgeo.org>

#213: digitizer: errors at copying categories
-----------------------+----------------------------------------------------
  Reporter: msieczka | Owner: martinl
      Type: defect | Status: assigned
  Priority: major | Milestone: 6.4.0
Component: wxGUI | Version: svn-develbranch6
Resolution: | Keywords:
  Platform: Linux | Cpu: x86-64
-----------------------+----------------------------------------------------
Comment (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

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/213#comment:5&gt;
GRASS GIS <http://grass.osgeo.org>

#213: digitizer: errors at copying categories
-----------------------+----------------------------------------------------
  Reporter: msieczka | Owner: martinl
      Type: defect | Status: closed
  Priority: major | Milestone: 6.4.0
Component: wxGUI | Version: svn-develbranch6
Resolution: fixed | Keywords:
  Platform: Linux | Cpu: x86-64
-----------------------+----------------------------------------------------
Changes (by martinl):

  * status: assigned => closed
  * resolution: => fixed

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/213#comment:6&gt;
GRASS GIS <http://grass.osgeo.org>