Opened 6 years ago

Last modified 5 years ago

#3571 new defect

3D raster map not displayed in 3D view mode in winGRASS

Reported by: hellik Owned by: grass-dev@…
Priority: major Milestone: 7.4.5
Component: Raster3D Version: 7.4.0
Keywords: Cc:
CPU: x86-64 Platform: MSWindows 8

Description

calculating a 3D raster map by following the v.vol.rst-example

g.region -3                                                                     
projection: 1 (UTM)
zone:       13
datum:      nad27
ellipsoid:  clark66
north:      4928100
south:      4913700
west:       589900
east:       609000
top:        1500.00000000
bottom:     0.00000000
nsres:      100
nsres3:     100
ewres:      100
ewres3:     100
tbres:      100
rows:       144
rows3:      144
cols:       191
cols3:      191
depths:     15
cells:      27504
cells3:     412560
r3.colors --verbose map=soilrange@user1 color=viridis                           
Color table for raster3d map <soilrange@user1> set to 'viridis'
r3.info map=soilrange@user1                                                     
 +----------------------------------------------------------------------------+
 | Layer:    soilrange@user1                Date: Sat Jun 02 20:57:10 2018    |
 | Mapset:   user1                          Login of Creator: hkmyr           |
 | Location: spearfish_grass70data_0                                          |
 | DataBase: D:\grassdata                                                     |
 | Title:    soilrange                                                        |
 | Units:    none                                                             |
 | Vertical unit: units                                                       |
 | Timestamp: none                                                            |
 |----------------------------------------------------------------------------|
 |                                                                            |
 |   Type of Map:  raster_3d            Number of Categories: 0               |
 |   Data Type:    FCELL                                                      |
 |   Rows:         144                                                        |
 |   Columns:      191                                                        |
 |   Depths:       15                                                         |
 |   Total Cells:  412560                                                     |
 |   Total size:           763629 Bytes                                       |
 |   Number of tiles:      72                                                 |
 |   Mean tile size:       10605 Bytes                                        |
 |   Tile size in memory:  24576 Bytes                                        |
 |   Number of tiles in x, y and  z:   6, 6, 2                                |
 |   Dimension of a tile in x, y, z:   32, 24, 8                              |
 |                                                                            |
 |        Projection: UTM (zone 13)                                           |
 |            N:    4928100    S:    4913700   Res:   100                     |
 |            E:     609000    W:     589900   Res:   100                     |
 |            T:       1500    B:          0   Res:   100                     |
 |   Range of data:   min = -0.00299961 max =  7.1888442                      |
 |                                                                            |
 |   Data Source:                                                             |
 |                                                                            |
 |                                                                            |
 |                                                                            |
 |   Data Description:                                                        |
 |    generated by v.vol.rst                                                  |
 |                                                                            |
 |   Comments:                                                                |
 |    v.vol.rst input="elevrand_3d" wcolumn="soilrange" tension=40. smooth\   |
 |    =0.1 segmax=50 npmin=200 npmax=700 wscale=1.0 zscale=100 elevation="\   |
 |    soilrange"                                                              |
 |                                                                            |
 +----------------------------------------------------------------------------+
g.gisenv set=DEBUG=3 

some errors found when loading the 3D raster in 3D view mode

[...]
D3/3: region item: depths:     15
D3/3: region item: e-w resol3: 100
D3/3: region item: n-s resol3: 100
D3/3: region item: t-b resol:  100
D1/3: GS_libinit(): n=4928100.000000 s=4913700.000000 w=589900.000000 e=609000.000000 scale=0.052356 first=0
D3/3: G_str_to_color(): str = '255:255:255'
D3/3: GS_get_zrange_nz(): min=0 max=0
Traceback (most recent call last):
  File "C:\OSGEO4~1\apps\grass\grass-7.5.svn\gui\wxpython\nviz\tools.py", line 4339, in OnVolumeResolution
    self.SetVolumeResolution(event.GetInt())
  File "C:\OSGEO4~1\apps\grass\grass-7.5.svn\gui\wxpython\nviz\tools.py", line 4344, in SetVolumeResolution
    id = data['object']['id']
KeyError: 'object'
Traceback (most recent call last):
  File "C:\OSGEO4~1\apps\grass\grass-7.5.svn\gui\wxpython\nviz\tools.py", line 3274, in OnSetRaster3D
    self.UpdateVolumePage(layer, data, updateName=False)
  File "C:\OSGEO4~1\apps\grass\grass-7.5.svn\gui\wxpython\nviz\tools.py", line 5543, in UpdateVolumePage
    id = data['object']['id']
KeyError: 'object'
D1/3: Nviz_change_exag(): value = 1.000000
D3/3: GS_global_exag(): 1
D1/3: Nviz_set_viewpoint_height(): value = 5000.000000
D3/3: GS_get_zrange(): min=8.71087e-039 max=0
[...]

the 3D raster map isn't displayed in 3D view mode.

tested in winGRASS7.4.0

and

System Info                                                                     
GRASS version: 7.5.svn                                                          
GRASS SVN revision: r72754                                                      
Build date: 2018-06-01                                                          
Build platform: x86_64-w64-mingw32                                              
GDAL: 2.2.3                                                                     
PROJ.4: 4.9.3                                                                   
GEOS: 3.5.0                                                                     
SQLite: 3.17.0                                                                  
Python: 2.7.5                                                                   
wxPython: 2.8.12.1                                                              
Platform: Windows-8-6.2.9200 (OSGeo4W) 

Change History (6)

comment:1 by hellik, 6 years ago

Priority: normalmajor

comment:2 by hellik, 6 years ago

see also a corresponding thread in the user ML

comment:3 by neteler, 6 years ago

Milestone: 7.4.17.4.2

comment:4 by neteler, 6 years ago

Milestone: 7.4.27.4.3

Ticket retargeted after milestone closed

comment:5 by martinl, 5 years ago

Milestone: 7.4.37.4.4

Bump milestone to 7.4.4

comment:6 by neteler, 5 years ago

Milestone: 7.4.47.4.5

Ticket retargeted after milestone closed

Note: See TracTickets for help on using tickets.