LasMover¶
LasMover moves all the points of a LAS file by the given distances along the three axes, as to correct a shift of a survey or a different datum of its elevations. Everything else of the points is kept.
Details¶
The distances are added to the coordinates of every point, as to correct a shift of the survey or to change between two reference systems that differ by a translation, as two datums of the elevation. The reference system of the file is not changed: a move to another reference system needs the right prj file next to the output.
The offset of the header moves with the points, so that the points keep the same scaled integers and the same precision, also when moved far from where they were; the scale and the other attributes of the points are kept.
Parameters¶
Moves the points of a las file by the given distances along the three axes, in the units of its reference system.
Toolbox folder: Lesto › utilities
Status: Experimental
Keywords: las, move
Authors: Andrea Antonello
Class: org.hortonmachine.lesto.modules.utilities.LasMover
Inputs
Parameter |
Type |
Unit |
Default |
Description |
|---|---|---|---|---|
|
LAS file |
The las file to move. |
||
|
double |
|
The easting translation to apply. |
|
|
double |
|
The northing translation to apply. |
|
|
double |
|
The elevation translation to apply. |
Outputs
Parameter |
Type |
Unit |
Description |
|---|---|---|---|
|
output file |
The moved las file. |
Example¶
The sample survey moved 100 m to the east and 0.35 m down:
import org.hortonmachine.lesto.modules.utilities.LasMover
// the folder with the lidar survey: change it to yours
var folder = "/data/flanginec/"
// move the survey 100 m to the east and 0.35 m down, as to correct a datum shift
var mover = new LasMover()
mover.inFile = folder + "uni_bz_plot777.las"
mover.pDeltaX = 100.0
mover.pDeltaZ = -0.35
mover.outFile = folder + "las_moved.las"
mover.process()
The moved file has the bounds of the input, from 725817.98 to 725878.47 m of easting and from 1896.31 to 1948.46 m of elevation.