[GRASS-dev] [GRASS GIS] #2548: map display 3d view: error to display vector point

#2548: map display 3d view: error to display vector point
--------------------+-------------------------------------------------------
Reporter: hellik | Owner: grass-dev@…
     Type: defect | Status: new
Priority: major | Milestone: 7.0.0
Component: wxGUI | Version: svn-trunk
Keywords: | Platform: MSWindows 7
      Cpu: x86-64 |
--------------------+-------------------------------------------------------
tested with

{{{
System Info
GRASS Version: 7.1.svn
GRASS SVN Revision: 64069
Erstellungsdatum: 2015-01-12
Build Platform: i686-pc-mingw32
GDAL/OGR: 1.11.1
PROJ.4: 4.8.0
GEOS: 3.4.2
SQLite: 3.7.17
Python: 2.7.4
wxPython: 2.8.12.1
Platform: Windows-7-6.1.7601-SP1 (OSGeo4W)
}}}

error message:

{{{
Traceback (most recent call last):
   File "C:\OSGeo4W\apps\grass\grass-7.1.svn\gui\wxpython\nvi
z\tools.py", line 2787, in OnSetRaster

self.UpdateSurfacePage(layer, data, updateName = False)
   File "C:\OSGeo4W\apps\grass\grass-7.1.svn\gui\wxpython\nvi
z\tools.py", line 4736, in UpdateSurfacePage

self.OnSurfaceAxis(None)
   File "C:\OSGeo4W\apps\grass\grass-7.1.svn\gui\wxpython\nvi
z\tools.py", line 3286, in OnSurfaceAxis

id = data['surface']['object']['id']
KeyError
:
'object'
Lade Rasterkarte <N47E012@myricaria>...
Lade Rasterkarte <N47E012@myricaria>...
Übersetze Farben der Rasterkarte <N47E012@myricaria>...
Vektorkarte <grosspoint2@myricaria> geladen (1 Punkte).
}}}

steps done:

- load DEM to map display
- load point vector (1 point) to map display
- switch to 3d view

raster is displayed in 3d view, but not the vector

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

#2548: map display 3d view: error to display vector point
--------------------+-------------------------------------------------------
Reporter: hellik | Owner: grass-dev@…
     Type: defect | Status: new
Priority: major | Milestone: 7.0.0
Component: wxGUI | Version: svn-trunk
Keywords: | Platform: MSWindows 7
      Cpu: x86-64 |
--------------------+-------------------------------------------------------

Comment(by annakrat):

I can't reproduce this on Ubuntu. Does this happen with fresh gui
instance?

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

#2548: map display 3d view: error to display vector point
--------------------+-------------------------------------------------------
Reporter: hellik | Owner: grass-dev@…
     Type: defect | Status: new
Priority: major | Milestone: 7.0.0
Component: wxGUI | Version: svn-trunk
Keywords: | Platform: MSWindows 7
      Cpu: x86-64 |
--------------------+-------------------------------------------------------

Comment(by hellik):

Replying to [comment:1 annakrat]:
> I can't reproduce this on Ubuntu. Does this happen with fresh gui
instance?

now tested with the nc sample data set

{{{
Starte 3D-Ansichtsmodus...
Lade Rasterkarte <elevation@PERMANENT>...
Lade Rasterkarte <elevation@PERMANENT>...
Übersetze Farben der Rasterkarte <elevation@PERMANENT>...
Vektorkarte <firestations@PERMANENT> geladen (15 Punkte).
Wechsle zu 2D-Ansicht zurück...
Rasterkarte <elevation@PERMANENT> erfolgreich entfernt
Vektorkarte <firestations@PERMANENT> (points) erfolgreich entfernt
Starte 3D-Ansichtsmodus...
Traceback (most recent call last):
   File "C:\OSGeo4W\apps\grass\grass-7.1.svn\gui\wxpython\nvi
z\tools.py", line 2787, in OnSetRaster

self.UpdateSurfacePage(layer, data, updateName = False)
   File "C:\OSGeo4W\apps\grass\grass-7.1.svn\gui\wxpython\nvi
z\tools.py", line 4736, in UpdateSurfacePage

self.OnSurfaceAxis(None)
   File "C:\OSGeo4W\apps\grass\grass-7.1.svn\gui\wxpython\nvi
z\tools.py", line 3286, in OnSurfaceAxis

id = data['surface']['object']['id']
KeyError
:
'object'
Lade Rasterkarte <elevation@PERMANENT>...
Lade Rasterkarte <elevation@PERMANENT>...
Übersetze Farben der Rasterkarte <elevation@PERMANENT>...
Vektorkarte <overpasses@PERMANENT> geladen (117 Punkte).
}}}

to reproduce in nc sample data set:

{{{
- load elevation
- load firestation
- switch to 3d view
- switch back to 2d view
- remove firestation from map display
- add overpasses vector to map display
- switch to 3d view
}}}

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

#2548: map display 3d view: error to display vector point
--------------------+-------------------------------------------------------
Reporter: hellik | Owner: grass-dev@…
     Type: defect | Status: new
Priority: major | Milestone: 7.0.0
Component: wxGUI | Version: svn-trunk
Keywords: | Platform: MSWindows 7
      Cpu: x86-64 |
--------------------+-------------------------------------------------------

Comment(by annakrat):

So it seems Windows only problem.

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

#2548: map display 3d view: error to display vector point
--------------------+-------------------------------------------------------
Reporter: hellik | Owner: grass-dev@…
     Type: defect | Status: new
Priority: major | Milestone: 7.0.0
Component: wxGUI | Version: svn-trunk
Keywords: | Platform: MSWindows 7
      Cpu: x86-64 |
--------------------+-------------------------------------------------------

Comment(by marisn):

Replying to [comment:3 annakrat]:
> So it seems Windows only problem.
Observed the same problem on XP and Vista with 7.0.0

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