Skip to contents

Get the Coordinate Reference System of LAS files

Usage

get_crs(path, full.names = FALSE)

Arguments

path

The path to a file (.las/.laz/.copc), to a directory which contains these files, or to a virtual point cloud (.vpc) referencing these files.

full.names

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

Value

A dataframe returning filename and crs (EPSG)

Examples

f <- system.file("extdata", package="managelidar")
get_crs(f)
#> Warning: This LAS object stores the CRS as WKT. 0 returned; use 'wkt()' instead.
#> Warning: This LAS object stores the CRS as WKT. 0 returned; use 'wkt()' instead.
#> Warning: This LAS object stores the CRS as WKT. 0 returned; use 'wkt()' instead.
#> Warning: This LAS object stores the CRS as WKT. 0 returned; use 'wkt()' instead.
#>                                                            filename   crs
#> 3dm_32_547_5724_1_ni_20240327.laz 3dm_32_547_5724_1_ni_20240327.laz 25832
#> 3dm_32_547_5725_1_ni_20240327.laz 3dm_32_547_5725_1_ni_20240327.laz 25832
#> 3dm_32_548_5724_1_ni_20240327.laz 3dm_32_548_5724_1_ni_20240327.laz 25832
#> 3dm_32_548_5725_1_ni_20240327.laz 3dm_32_548_5725_1_ni_20240327.laz 25832