[GRASS-user] error running digitzing tool wxpython

Hello Grass Usersgroup

Running on linux open suse 10.3 have download grass-6.4.svn_src_snapshot_2008_11_15.tar.gz
en install some additional libraries (wxwidget, wxpyton ,swig etc) and compiled the source-code include the pyton
digitizing tool v.digit.

Running the digitize tool I've the following error masseges:

if len(self.vdigitMove['id']) > 0:
TypeError
:
tuple indices must be integers
Traceback (most recent call last):
  File "/usr/local/grass-6.4.svn/etc/wxpython/gui_modules/ma
pdisp.py", line 1125, in MouseActions

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

if len(self.vdigitMove['id']) > 0:
TypeError
:
tuple indices must be integers
Traceback (most recent call last):
  File "/usr/local/grass-6.4.svn/etc/wxpython/gui_modules/ma
pdisp.py", line 1125, in MouseActions

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

if len(self.vdigitMove['id']) > 0:
TypeError
:
tuple indices must be integers
Traceback (most recent call last):
  File "/usr/local/grass-6.4.svn/etc/wxpython/gui_modules/ma
pdisp.py", line 1125, in MouseActions

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

if len(self.vdigitMove['id']) > 0:
TypeError
:
tuple indices must be integers

What is wrong?
The vectormap contains floating point coordinates, and reading the report of Martin Landa (Perugia, 21-22 Feb 2008)
wxPython-based GUI for GRASS GIS

"the general display architecture needs to bee improved to support floating-point coordinates"
Is here the problem

thanks for help

Joop Goedbloed

Date: Thu, 20 Nov 2008 21:20:22 +0100
From: jlgoedbloed@hetnet.nl
To: grass-user@lists.osgeo.org
Subject: [GRASS-user] error running digitzing tool wxpython

Hello Grass Usersgroup

Running on linux open suse 10.3 have download
grass-6.4.svn_src_snapshot_2008_11_15.tar.gz
en install some additional libraries (wxwidget, wxpyton ,swig etc) and
compiled the source-code include the pyton
digitizing tool v.digit.

Check if you compiled the source code -with-python

"-with-python" is not enough to get the new wxPython GUI installed.
That is only required for the new vdigit.

Running the digitize tool I’ve the following error masseges:

if len(self.vdigitMove[‘id’]) > 0:
TypeError
:
tuple indices must be integers
Traceback (most recent call last):
File “/usr/local/grass-6.4.svn/etc/wxpython/gui_modules/ma
pdisp.py”, line 1125, in MouseActions

self.OnMouseMoving(event)
File “/usr/local/grass-6.4.svn/etc/wxpython/gui_modules/ma
pdisp.py”, line 2011, in OnMouseMoving

if len(self.vdigitMove[‘id’]) > 0:
TypeError
:
tuple indices must be integers
Traceback (most recent call last):
File “/usr/local/grass-6.4.svn/etc/wxpython/gui_modules/ma
pdisp.py”, line 1125, in MouseActions

self.OnMouseMoving(event)
File “/usr/local/grass-6.4.svn/etc/wxpython/gui_modules/ma
pdisp.py”, line 2011, in OnMouseMoving

if len(self.vdigitMove[‘id’]) > 0:
TypeError
:
tuple indices must be integers
Traceback (most recent call last):
File “/usr/local/grass-6.4.svn/etc/wxpython/gui_modules/ma
pdisp.py”, line 1125, in MouseActions

self.OnMouseMoving(event)
File “/usr/local/grass-6.4.svn/etc/wxpython/gui_modules/ma
pdisp.py”, line 2011, in OnMouseMoving

if len(self.vdigitMove[‘id’]) > 0:
TypeError
:
tuple indices must be integers

What is wrong?
The vectormap contains floating point coordinates, and reading the
report of Martin Landa (Perugia, 21-22 Feb 2008)
wxPython-based GUI for GRASS GIS

“the general display architecture needs to bee improved to support
floating-point coordinates”
Is here the problem

thanks for help

Joop Goedbloed

Jhon Ortiz Trujillo
Geologist - EOS-DTH - ICP
Bogotá - Colombia


No te aburras más, engánchate a los Juegos de Messenger

Hi.

2008/11/20 Joop Goedbloed <jlgoedbloed@hetnet.nl>:

Running on linux open suse 10.3 have download
grass-6.4.svn_src_snapshot_2008_11_15.tar.gz
en install some additional libraries (wxwidget, wxpyton ,swig etc) and
compiled the source-code include the pyton
digitizing tool v.digit.

Running the digitize tool I've the following error masseges:

Please report exactly what steps you did to reach this error.

if len(self.vdigitMove['id']) > 0:
TypeError
:
tuple indices must be integers
Traceback (most recent call last):
File "/usr/local/grass-6.4.svn/etc/wxpython/gui_modules/ma
pdisp.py", line 1125, in MouseActions

[...]

What is wrong?
The vectormap contains floating point coordinates, and reading the report of
Martin Landa (Perugia, 21-22 Feb 2008)
wxPython-based GUI for GRASS GIS

"the general display architecture needs to bee improved to support
floating-point coordinates"
Is here the problem

no, it's unrelated (at least for grass6). Martin

--
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa *

Hi,

2008/11/21 Joop Goedbloed <jlgoedbloed@hetnet.nl>:

Grass6.4 is configured with --with-cxx --with-python --with-wxwidgets

The wx digitizing tool runs fine zoomin and zoom out is running fine.
as soom when I edit some vertex like movevertex splitvertex etc. the tool
seems to hang and I become this errors.

I will check it ASAP, I am out of the office right now. So, you open
vector map for editing, choose vertex to be moved by left mouse
button, error appears... Is it right?

Martin

--
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa *

Hello Users-Group

Doing some research the error below has something to do with the settings.
I've set the snapping on 10 and save the settings.
The tool runs more better but slower then v.digit (tcltk)

the tool differs also from the v.digit tool

Here is a link to three images.
img1 <ftp://80.61.251.86/grass64/J09v_digit.jpg&gt;

img2 <ftp://80.61.251.86/grass64/J09map_display.jpg&gt;

img3 <ftp://80.61.251.86/grass64/J09wxpython_tool.jpg&gt;

A map with paved areas of roads:
J09v_digit.jpg (v.digit map) every boundary is green with centriods in each paved area.

J09map_display.jpg is th same map in the display this is correct.

J09wxpyton_tool.jpg (same map wit the wxpython tool with the setting areas cheched 'on'
This map is not correct.

here is the link

maps <ftp://80.61.251.86/grass64/&gt;

What is wrong

Joop Goedbloed

Martin Landa schreef:

Hi,

2008/11/21 Joop Goedbloed <jlgoedbloed@hetnet.nl>:
  

Grass6.4 is configured with --with-cxx --with-python --with-wxwidgets

The wx digitizing tool runs fine zoomin and zoom out is running fine.
as soom when I edit some vertex like movevertex splitvertex etc. the tool
seems to hang and I become this errors.
    
I will check it ASAP, I am out of the office right now. So, you open
vector map for editing, choose vertex to be moved by left mouse
button, error appears... Is it right?

Martin