[GRASS-dev] [GRASS GIS] #3571: 3D raster map not displayed in 3D view mode in winGRASS
GRASS GIS
trac at osgeo.org
Sat Jun 2 12:33:05 PDT 2018
#3571: 3D raster map not displayed in 3D view mode in winGRASS
-------------------------+-------------------------
Reporter: hellik | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.4.1
Component: Raster3D | Version: 7.4.0
Keywords: | CPU: x86-64
Platform: MSWindows 8 |
-------------------------+-------------------------
calculating a 3D raster map by following the
[https://grass.osgeo.org/grass75/manuals/v.vol.rst.html 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 at user1 color=viridis
Color table for raster3d map <soilrange at user1> set to 'viridis'
}}}
{{{
r3.info map=soilrange at user1
+----------------------------------------------------------------------------+
| Layer: soilrange at 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)
}}}
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3571>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list