[GRASS-dev] v.out.lidar: export point cloud from GRASS

Vaclav Petras wenzeslaus at gmail.com
Mon Nov 16 19:16:14 PST 2015

Hi all,

in r66855 I've implemented an export module for LAS files. The main
motivation is creating test data for v.in.lidar and r.in.lidar and
visualization of points in plas.io. Most of the lidar attributes are
supported when provided in attribute table or as categories in separate

Colors can be also stored in the separate layers as proposed earlier on the
mailing list. There is nothing in GRASS currently which could write it
(I've used modified v.in.lidar) but two options are supported, one color
per layer and RGB as one category (using bit shifts). There is a discussion
for this linked below.

All the layers and columns (one per attribute) are causing quite long
option list. In GUI, it is well separated using guisection but it is a lot
of to fill out anyway. Layers cannot be avoided but perhaps columns can
have some predefined names which would be used with a given flag enabled.

Current limitations: Skipping points without category, color entry in the
attribute table or filtered out by where option is not supported. Some
lidar point attributes are not yet supported. Offsets and scales for
coordinates are not supported. Z coordinate is always expected.

In addition to the color options above, a possible improvement would be
specifying color table for z values as it is implemented in d.vect. This,
however, requires min and max z which are accessible only with topology or
after iterating over all data (well, unless user specifies z range or

Besides the usages mentioned above, it seems that v.out.lidar might be
useful, with certain speed limitations, when using spatial selection in
v.in.lidar or grid-based decimation in v.decimate, but LAS is the desired
output format.


r66855: v.out.lidar: export vector as LAS

Using layers and categories for something else than ID and class

v.in.lidar: limit the import to a set of polygons

v.in.lidar: decimation (skip, preserve, offset, limit)

v.decimate: point cloud decimation of native vector maps
(not yet enabled in the parent Makefile)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20151116/734b974d/attachment.html>

More information about the grass-dev mailing list