lastransform

0th

Percentile

Datum transformation for LAS objects

A version of spTrasform for LAS objects. Returns transformed coordinates of a LAS object from the projection of the object to the the projection given by arguments.

Usage
lastransform(las, epsg, CRSobj = NULL)
Arguments
las

An object of class LAS

epsg

integer. Unlike spTransform the EPSG code of the CRS should be preferred for LAS objects. See also epsg to understand why. If missing, CRSobj will be used instead.

CRSobj

logical. Object of class CRS or of class character, in which case it is converted to CRS.

Value

An object of class LAS with coordinates XY transformed to the new coordinate reference system.

Aliases
  • lastransform
Examples
# NOT RUN {
LASfile <- system.file("extdata", "Megaplot.laz", package="lidR")
las <- readLAS(LASfile, select = "xyzrn")

head(las@data)

las <- lastransform(las, 26918)
# }
Documentation reproduced from package lidR, version 2.0.0, License: GPL-3

Community examples

Looks like there are no examples yet.