Opened 9 years ago

Closed 7 years ago

#1292 closed defect (fixed)

Profile tool incorrectly processes no data values

Reported by: marisn Owned by: grass-dev@…
Priority: normal Milestone: 6.4.3
Component: wxGUI Version: 6.4.1 RCs
Keywords: wingrass, profile Cc:
CPU: Unspecified Platform: MSWindows Vista

Description

To reproduce error, just create a profile over empy part of map.

WinGRASS-6.4.1RC1-1 on Windows Vista

Traceback (most recent call last):
  File "C:\Program
Files\GRASS-64\etc\wxpython\gui_modules\mapdisp.py", line
1665, in Profile

self.profile.OnSelectRaster(None)
  File "c:/osgeo4w/usr/src/grass-6.4.1RC1/dist.i686-pc-
mingw32/etc/wxpython/gui_modules/profile.py", line 241, in
OnSelectRaster
  File "c:/osgeo4w/usr/src/grass-6.4.1RC1/dist.i686-pc-
mingw32/etc/wxpython/gui_modules/profile.py", line 468, in
OnCreateProfile
  File "c:/osgeo4w/usr/src/grass-6.4.1RC1/dist.i686-pc-
mingw32/etc/wxpython/gui_modules/profile.py", line 490, in
DrawPlot
  File "C:\OSGeo4W\apps\Python25\lib\site-packages\wx-2.8
-msw-unicode\wx\lib\plot.py", line 283, in __init__
  File "C:\OSGeo4W\apps\Python25\lib\site-packages\wx-2.8
-msw-unicode\wx\lib\plot.py", line 124, in __init__
ValueError
:
invalid literal for float(): *
Traceback (most recent call last):
  File "c:/osgeo4w/usr/src/grass-6.4.1RC1/dist.i686-pc-
mingw32/etc/wxpython/gui_modules/profile.py", line 241, in
OnSelectRaster
  File "c:/osgeo4w/usr/src/grass-6.4.1RC1/dist.i686-pc-
mingw32/etc/wxpython/gui_modules/profile.py", line 468, in
OnCreateProfile
  File "c:/osgeo4w/usr/src/grass-6.4.1RC1/dist.i686-pc-
mingw32/etc/wxpython/gui_modules/profile.py", line 490, in
DrawPlot
  File "C:\OSGeo4W\apps\Python25\lib\site-packages\wx-2.8
-msw-unicode\wx\lib\plot.py", line 283, in __init__
  File "C:\OSGeo4W\apps\Python25\lib\site-packages\wx-2.8
-msw-unicode\wx\lib\plot.py", line 124, in __init__
ValueError
:
invalid literal for float(): *
Traceback (most recent call last):
  File "c:/osgeo4w/usr/src/grass-6.4.1RC1/dist.i686-pc-
mingw32/etc/wxpython/gui_modules/profile.py", line 468, in
OnCreateProfile
  File "c:/osgeo4w/usr/src/grass-6.4.1RC1/dist.i686-pc-
mingw32/etc/wxpython/gui_modules/profile.py", line 523, in
DrawPlot
  File "C:\OSGeo4W\apps\Python25\lib\site-packages\wx-2.8
-msw-unicode\wx\lib\plot.py", line 986, in Draw
  File "C:\OSGeo4W\apps\Python25\lib\site-packages\wx-2.8
-msw-unicode\wx\lib\plot.py", line 1012, in _Draw
  File "C:\OSGeo4W\apps\Python25\lib\site-packages\wx-2.8
-msw-unicode\wx\lib\plot.py", line 388, in boundingBox
IndexError
:
list index out of range

Change History (3)

comment:1 Changed 8 years ago by hamish

Keywords: wingrass profile added
Milestone: 6.4.16.4.2

comment:2 Changed 7 years ago by neteler

Milestone: 6.4.26.4.3

Some fixes have been applied 6 months ago:

http://trac.osgeo.org/grass/log/grass/branches/releasebranch_6_4/gui/wxpython/wxplot/profile.py

Does the problem persist?

comment:3 Changed 7 years ago by annakrat

Resolution: fixed
Status: newclosed

This problem is fixed so I close the ticket. However, I am not sure at all that the null values are handled correctly but I am not able to specify the problem now.

Note: See TracTickets for help on using tickets.