lidR (version 1.3.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, y)

Arguments

x

An object of the class LAS or LAScatalog or numeric

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

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