LasFromFaroTlsXyz¶
LasFromFaroTlsXyz converts a scan of a FARO terrestrial laser scanner to a LAS file. The scan is the text export of the scan points of the SCENE software, with the coordinates of each point from the scanner and its color: the module places them in a projected reference system, from the position of the scanner, and keeps the points within a distance from it.
Details¶
The input is the export of the scan points of SCENE, a text file with one point per line and eight columns separated by spaces: the row and column of the point in the scan, its x and y from the scanner in meters, its elevation, and its red, green and blue color from 0 to 255. Any other layout stops the conversion.
The x and y are relative to the scanner, so they are moved by the easting and northing given for it, in the projected reference system of the output. The elevation is kept as it is, so the scan must be referenced to the right elevation already. With the maximum distance, the points farther than it from the scanner on the plane are left out, as the far points of a scan are sparse and noisy.
The las file has the point format 3, with the colors of the scan. The scan has no returns, classes, intensities or times: the points are written as single returns, never classified (class 0), with intensity 0 and time 0.
Parameters¶
Converts the scan points of a FARO terrestrial laser scanner, exported as xyz text by the SCENE software, to a las file.
Toolbox folder: Lesto › utilities
Status: Experimental
Keywords: las, tls, convert
Authors: Andrea Antonello
Class: org.hortonmachine.lesto.modules.utilities.LasFromFaroTlsXyz
Inputs
Parameter |
Type |
Unit |
Default |
Description |
|---|---|---|---|---|
|
file |
The xyz file to convert, with the columns row, column, x and y from the scanner, elevation, red, green and blue. |
||
|
Double |
The easting of the scanner in the projected reference system of the output, added to the x of the points. |
||
|
Double |
The northing of the scanner in the projected reference system of the output, added to the y of the points. |
||
|
Double |
m |
The maximum horizontal distance from the scanner: the farther points are left out. |
|
|
CRS code |
The code defining the data coordinate reference system. |
Outputs
Parameter |
Type |
Unit |
Description |
|---|---|---|---|
|
output file |
The converted las output file. |
Example¶
A scan with the scanner placed at 681270 E, 5127117 N in UTM zone 32N, keeping the points within 15 m of it. The manual has no sample scan, so this example is not run:
import org.hortonmachine.lesto.modules.utilities.LasFromFaroTlsXyz
// the folder with the scan: change it to yours
var folder = "/data/scans/"
// a scan exported by SCENE as xyz scan points, with the scanner placed at
// 681270 E, 5127117 N in UTM 32N, keeping the points within 15 m of it
var converter = new LasFromFaroTlsXyz()
converter.inFile = folder + "scan_points.xyz"
converter.pLongitude = 681270.0
converter.pLatitude = 5127117.0
converter.pMaxDistance = 15.0
converter.pCode = "EPSG:32632"
converter.outLas = folder + "scan.las"
converter.process()
Each line of the scan has the row and column of the point in the scan, its x and y from the scanner, its elevation and its color:
1205 3487 -7.4184 0.3945 1190.8795 254 254 254