
Last chance! 50% off unlimited learning
Sale ends in
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.
lastransform(las, epsg, CRSobj = NULL)
An object of class LAS
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.
An object of class LAS with coordinates XY transformed to the new coordinate reference system.
# NOT RUN {
LASfile <- system.file("extdata", "Megaplot.laz", package="lidR")
las <- readLAS(LASfile, select = "xyzrn")
head(las@data)
las <- lastransform(las, 26918)
# }
Run the code above in your browser using DataLab