LasInfo

LasInfo prints what a LAS file contains: the fields of its header, its reference system and its first three points. It is the quick check of a survey before using it, as of its point format, its number of points and its bounds. Given a folder, it prints the same for each LAS file in it.

Details

For each file it prints the fields of the header, as the version, the point format, the number of points, the scale, the offset and the bounds, then the reference system, from the prj file next to the las file, and the first three points with all their attributes.

The output is only printed, to the log of the module. It is a quick check of a survey before using it: the point format tells if the points have times and colors, and the bounds if they are in the expected place and reference system.

Parameters

Prints the header, the reference system and the first points of a las file, or of each las file of a folder.

Toolbox folder: Lesto › utilities
Status: Draft
Keywords: info, lidar, las
Authors: Andrea Antonello, Silvia Franceschi
Class: org.hortonmachine.lesto.modules.utilities.LasInfo

Inputs

Parameter

Type

Unit

Default

Description

inLas

LAS file

Las file or folder path.

Example

The information of the sample survey:

import org.hortonmachine.lesto.modules.utilities.LasInfo

// the folder with the lidar survey: change it to yours
var folder = "/data/flanginec/"

// print the header, the reference system and the first points of the survey
var info = new LasInfo()
info.inLas = folder + "uni_bz_plot777.las"
info.process()

The header tells that the survey has 33,410 points of format 1, with times and without colors, in the bounds of the plot, from 1896.66 to 1948.81 m of elevation:

Version: 1.0
Point data format ID (0-99 for spec): 1
Number of point records: 33410
Scale: [0.01, 0.01, 0.001]
Offset: [0.0, 0.0, 0.0]
X Range: [725717.98, 725778.47]
Y Range: [5205734.78, 5205795.28]
Z Range: [1896.66, 1948.81]
Has gps time info: true
Has color info: false

The reference system follows, WGS 84 / UTM zone 32N, then the first points, each with all its attributes:

Point 1
Dot ( 
	x = 725729.0700000001
	y = 5205795.19
	z = 1900.15
	intensity = 174
	impulse = 1
	impulseNum = 1
	classification = 2
	gpsTime = 204505.164429716
 )