R: Surface covered by a LAS* object

area {lidR} | R Documentation

## Surface covered by a LAS* object

### Description

Surface covered by a `LAS*` object. For `LAS` point clouds it is computed based on the convex hull of the points. For a `LAScatalog` it is computed as the sum of the bounding boxes of the files. For overlapping tiles the value may be larger than the total covered area because some regions are sampled twice. For a `LASheader` it is computed with the bounding box. The function `npoints` does what the user may expect it to do and the function `density` is equivalent to `npoints(x)/area(x)`. As a consequence for the same file `area` applied on a LASheader or on a LAS can return slightly different values.

### Usage

    area(x, ...)

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

    ## S4 method for signature 'LASheader'
    area(x, ...)

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

    npoints(x, ...)

    ## S4 method for signature 'LAS'
    npoints(x, ...)

    ## S4 method for signature 'LASheader'
    npoints(x, ...)

    ## S4 method for signature 'LAScatalog'
    npoints(x, ...)

    density(x, ...)

    ## S4 method for signature 'LAS'
    density(x, ...)

    ## S4 method for signature 'LASheader'
    density(x, ...)

    ## S4 method for signature 'LAScatalog'
    density(x, ...)

### Arguments

`x` | An object of the class `LAS*`.
`...` | unused.

### Value

numeric. A number. Notice that for area the measure is in the same units as the coordinate reference system.

[Package lidR version 3.2.2 Index]