Learn R Programming

lidR (version 2.2.5)

lasrescale: Rescale and reoffset a LAS object

Description

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

Usage

lasrescale(las, xscale, yscale, zscale)

lasreoffset(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 <- lasrescale(las, xscale = 0.01, yscale = 0.01)
las <- lasreoffset(las, xoffset = 300000, yoffset = 5248000)
# }

Run the code above in your browser using DataLab