lidR (version 1.5.0)

area: Surface covered by a LAS object or by a LAScatalog.

Description

The area is computed with the convex hull for LAS objects or x,y coordinates. If the data is not convex, the resulting area is only an approximation. The area is computed as the sum of the extents of each file for a LAScatalog.

Usage

area(x, ...)

# S4 method for LAS area(x, ...)

# S4 method for LAScatalog area(x, ...)

# S4 method for numeric area(x, y, ...)

Arguments

x

An object of the class LAS or LAScatalog or numeric

...

unused

y

If x is numeric, then provide also y.

Value

numeric. The area of the object computed in the same units as the coordinate reference system

See Also

raster::area

Examples

Run this code
# NOT RUN {
LASfile <- system.file("extdata", "Megaplot.laz", package="lidR")
las = readLAS(LASfile)
area(las)
# }

Run the code above in your browser using DataCamp Workspace