[GRASS-user] nviz - thematic mapping for vector points
nikos.alexandris at felis.uni-freiburg.de
Mon Jul 27 15:42:58 EDT 2009
I have problem understanding nviz settings for 3d vector points (Vector
I have some point data (converted to 3D vector) and columns x, y, z,
annual (fp precipitation values), annual_int (integer precipitation
I want to get the spheres coloured based on z (elevation) and sized
(=volume) based on the precipitation values upon the srtm3_dem. Hence, I
use the "thematic mapping for vector points". No matter what I try, I
don't it right.
Color(s) - The colors do not correspond to the ones that the "Auto" &
"Apply" is supposed to set. I get sometimes black spheres although there
is no black color defined.
Size - Some spheres just dissapear. But I checked the values from the
column I use and I don't find that they so much different. And I though
that setting the "icon size" is some kind of scaling.
Is there anything special that I have to check? BTW, the documentation
of nviz looks outdated (?). Below some code.
# check range of srtm3
r.info srtm3_for_global_rad -r
# set region
g.region rast=srtm3_for_global_rad b=-10 t=2503 tbres=10 res3=0:00:03
projection: 3 (Latitude-Longitude)
## even if working in WGS84, is the top, bottom to be defined
(always?) in metres?
## does, and how, the top-bottom and res3 resolution definitions
# converting 2D points to 3D:
v.drape input="precipitation" rast="srtm3_for_global_rad"
# check for 3D-ness
v.info precipitation_3d | grep 3D
| Map is 3D: Yes |
# launch nviz
nviz elev=srtm3_for_global_rad points=precipitation_3d
## first image looks ok. Now working on colors/sizes is a mess :-?
More information about the grass-user