reproject_tile: Transform point cloud coordinates to a new projection

View source: R/tile_functions.R

reproject_tileR Documentation

Transform point cloud coordinates to a new projection

Description

This function takes the X,Y coordinates of all points and transforms them from their existing projection to a user-specified one. The transformation is done using sf package methods. If the point cloud is very large this may take a while.

Usage

reproject_tile(las, epsg.new, epsg.old = lidR::epsg(las))

Arguments

las

A LAS object, e.g. imported using prepare_tile.

epsg.new

Integer EPSG code for the projection into which the point cloud will be transformed.

epsg.old

This argument allows you to optionally supply or override the EPSG code for the existing projection. For a LAS tile with a properly assigned projection this defaults to the existing EPSG code.

Value

A new LAS object with reprojected point coordinates and an updated header.


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