get_horizontal_crs: Get the horizontal coordinate reference system for a spatial...

View source: R/tile_functions.R

get_horizontal_crsR Documentation

Get the horizontal coordinate reference system for a spatial object

Description

Recent LiDAR data (e.g. from 2020 in Australia) can have a compound coordinate reference system defined that consists of a horizontal and a vertical component. Usually, we just want to use the horizontal component for derived raster layers. This function extracts the horizontal component and returns it as a crs object as used by the sf package. If the input object has a simple (i.e. non-compound) coordinate reference system, it will be returned unchanged.

Usage

get_horizontal_crs(x)

Arguments

x

An object with an associated coordinate reference system that can be retrieved using function sf::st_crs(). Usually this will be a LAS object, e.g. imported using prepare_tile, but any other spatial object class is acceptable.

Value

An sf package crs object.


mbedward/CERMBlidar documentation built on April 10, 2024, 2:05 p.m.