Skip to contents

Reads LAS, LAZ, PLY, or XYZ files and returns the appropriate platform-specific subtype based on the platform argument.

Usage

px_read(path, platform = "unknown", subsample = NULL)

Arguments

path

Character string — path to the point cloud file.

platform

Character string: "unknown", "aerial", "terrestrial", or "uav". Controls which subtype is returned and which default parameters apply to subsequent processing.

subsample

Numeric between 0 and 1, or NULL. If provided, randomly subsample to this fraction of points.

Value

A px_cloud (or platform subtype).

Examples

if (FALSE) { # \dontrun{
cloud <- px_read("survey.laz", platform = "aerial")
scan <- px_read("bridge.laz", platform = "terrestrial")
} # }