Opened 17 years ago

Closed 17 years ago

#30 closed defect (fixed)

error when digitizing new feature

Reported by: zanollim Owned by: martinl
Priority: minor Milestone: 6.4.0
Component: Python Version: svn-trunk
Keywords: wxgui, digitization Cc: grass-dev@…
CPU: Unspecified Platform: Unspecified

Description

I have a simple polygon layer with some polygons.
Sometimes if I try to digitize a new feature
(line, boundary, point or centroid) the feature is drawn
but I have also this error:

Traceback (most recent call last):
  File "/usr/src/grass_trunk/dist.i686-pc-linux-gnu/etc/wx/gui_modules/mapdisp.py", line 812, in MouseActions
    self.OnLeftDown(event)
  File "/usr/src/grass_trunk/dist.i686-pc-linux-gnu/etc/wx/gui_modules/mapdisp.py", line 927, in OnLeftDown
    action="add")
  File "/usr/src/grass_trunk/dist.i686-pc-linux-gnu/etc/wx/gui_modules/dbm.py", line 2703, in __init__
    self.UpdateDialog(cat, queryCoords, qdist)
  File "/usr/src/grass_trunk/dist.i686-pc-linux-gnu/etc/wx/gui_modules/dbm.py", line 2892, in UpdateDialog
    nselected = self.mapDBInfo.SelectFromTable(layer, where="cat=%d" % self.cat)  File "/usr/src/grass_trunk/dist.i686-pc-linux-gnu/etc/wx/gui_modules/dbm.py", line 3138, in SelectFromTable
    value = self.tables[table][name]['ctype'] (value)
ValueError: empty string for float()

Change History (2)

comment:1 by martinl, 17 years ago

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

Now should be fixed in trunk, r29977. Can you reproduce problematic behaviour and confirm that it is fixed now?

Martin

comment:2 by zanollim, 17 years ago

Resolution: fixed
Status: assignedclosed

ok fixed, now it seems work correctly.

Regards, michele

Note: See TracTickets for help on using tickets.