[GRASS-dev] [GRASS GIS] #3294: g.gui.tplot: error when trying to plot a STVDS

GRASS GIS trac at osgeo.org
Wed Feb 22 13:56:59 PST 2017


#3294: g.gui.tplot: error when trying to plot a STVDS
---------------------+-------------------------
  Reporter:  lrntct  |      Owner:  grass-dev@…
      Type:  defect  |     Status:  reopened
  Priority:  normal  |  Milestone:  7.2.1
 Component:  wxGUI   |    Version:  7.2.0
Resolution:          |   Keywords:
       CPU:  x86-64  |   Platform:  Linux
---------------------+-------------------------
Changes (by lrntct):

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


Comment:

 After applying the patch, I get another error when trying to plot the
 STVDS:

 {{{
 Traceback (most recent call last):
   File "/usr/lib/grass72/gui/wxpython/tplot/frame.py", line 759, in
 OnRedraw
     self._redraw()
   File "/usr/lib/grass72/gui/wxpython/tplot/frame.py", line 770, in
 _redraw
     self._getSTVDData(self.datasetsV)
   File "/usr/lib/grass72/gui/wxpython/tplot/frame.py", line 499, in
 _getSTVDData
     lay = int(row['layer'])
 TypeError: int() argument must be a string or a number, not 'NoneType'
 }}}

 The maps inside the STVDS have two layers.

 t.vect.db.select is working correctly with that STVDS.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3294#comment:3>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list