lidR (version 3.0.4)

las_rescale: Rescale and reoffset a LAS object

Description

Modifies the scale factor and the offset of a LAS object. This function modifies the header and recomputes the coordinates. Coordinates might be moved by few tenth of millimeters or few millimeters depending of the accuracy imposed by the user.

Usage

las_rescale(las, xscale, yscale, zscale)

las_reoffset(las, xoffset, yoffset, zoffset)

Arguments

las

An object of class LAS

xscale, yscale, zscale

scalar. Can be missing if not relevant.

xoffset, yoffset, zoffset

scalar. Can be missing if not relevant.

Examples

Run this code
# NOT RUN {
LASfile <- system.file("extdata", "example.laz", package = "rlas")
las <- readLAS(LASfile)

las <- las_rescale(las, xscale = 0.01, yscale = 0.01)
las <- las_reoffset(las, xoffset = 300000, yoffset = 5248000)
# }

Run the code above in your browser using DataLab