Skip to contents

get_extent uses min and max values of spatial extent defined in the header of lasfiles.

Usage

get_extent(path, full.names = FALSE)

Arguments

path

Either a path to a directory which contains laz files or the path to a Virtual Point Cloud (.vpc) created with lasR package.

full.names

Whether to return the full file path or just the file name (default)

Value

A dataframe with file, minx, miny, minz, maxx, maxy, maxz

Examples

f <- system.file("extdata", package="managelidar")
get_extent(f)
#>                                file   minx    miny    minz     maxx    maxy
#> 1 3dm_32_547_5724_1_ni_20240327.laz 547690 5724000 222.866 547999.7 5725000
#> 2 3dm_32_547_5725_1_ni_20240327.laz 547648 5725000 223.448 547998.1 5725991
#> 3 3dm_32_548_5724_1_ni_20240327.laz 548000 5724000 224.578 548992.0 5724997
#> 4 3dm_32_548_5725_1_ni_20240327.laz 548000 5725000 232.946 548995.4 5725992
#>      maxz
#> 1 316.283
#> 2 316.526
#> 3 372.281
#> 4 385.486