rlas (version 1.2.1)

readlasdata: Read data from a .las or .laz file

Description

(deprecated) Use read.las

Usage

readlasdata(files, i = TRUE, r = TRUE, n = TRUE, d = TRUE, e = TRUE,
  c = TRUE, a = TRUE, u = TRUE, p = TRUE, rgb = TRUE, t = TRUE,
  filter = "", eb = 0)

Arguments

files

filepath character string to the .las or .laz files

i

logical. do you want to load the Intensity field? default: TRUE

r

logical. do you want to load the ReturnNumber field? default: TRUE

n

logical. do you want to load the NumberOfReturns field? default: TRUE

d

logical. do you want to load the ScanDirectionFlag field? default: TRUE

e

logical. do you want to load the EdgeOfFlightline field? default: TRUE

c

logical. do you want to load the Classification field? default: TRUE

a

logical. do you want to load the ScanAngle field? default: TRUE

u

logical. do you want to load the UserData field? default: TRUE

p

logical. do you want to load the PointSourceID field? default: TRUE

rgb

logical. do you want to load R,G and B fields? default: TRUE

t

logical. do you want to load gpstime fields? default: TRUE

filter

character. filter data while reading the file (streaming filter) without allocating any useless memory. (see Details).

eb

integer vector. which extra byte attributes to load (see LAS file format specs). default is 0 meaning that all extra fields will be loaded. c(1,3,7) to load the first, the third and the seventh extra byte attributes. None is numeric(0) or NULL.

Value

A data.table

Examples

Run this code
# NOT RUN {
lazfile <- system.file("extdata", "example.laz", package="rlas")

lasdata <- readlasdata(lazfile)
lasdata <- readlasdata(lazfile, filter = "-keep_first")
lasdata <- readlasdata(lazfile, filter = "-drop_intensity_below 80")
# }

Run the code above in your browser using DataLab