d.vect: support for z height (geometry) colors added

After getting mad with Lidar points colorizing which till now
required a DB table with GRASSRGB attributes, I have
modified d.vect to support colors directly from z height (geometry).
Works for 3D points, lines (eg, 3D contours) and 3D polygons
(eg delaunay triangles):

# Spearfish:
g.region rast=elevation.10m
r.random elevation.10m n=5000 vector=random3d -d
d.mon x0
# display as black points
d.vect random3d
# display 3D points colorized according to z height
d.vect -z random3d zcol=gyr

# 3D contour lines
r.contour elevation.10m out=contour20m step=20
d.vect -z contour20m zcol=gyr

# generate 3D triangles
v.delaunay random3d out=random3d_del
# display 3D polygons colorized according to z height
d.vect -z random3d_del type=area zcol=gyr

Enjoy,
Markus

This entry was posted in GIS, GRASS development, Lidar, Vector on by .

About Markus

Markus Neteler , a founding member of FOSSGIS.de (D-A-CH), GFOSS.it (Italy) and the Open Source Geospatial Foundation (OSGeo), was head of the GIS and Remote Sensing Unit at the Research and Innovation Centre of the Fondazione Edmund Mach, Trento, Italy from 2008 to 2016. In 2015 he co-founded the company mundialis (Bonn, Germany), a start-up specialised in open source development and massive data processing. He is the author of several books and chapters on GRASS and various papers on GIS applications. Passionate about open source GIS, he became a GRASS GIS user in 1993 and a developer in 1997, and has been coordinating its development ever since.