uavRst (version 0.5-2)

lastool: simple wrapper for some LAStools functions

Description

simple wrapper for some lastools functions

Usage

lastool(tool = "lasinfo", lasFile = NULL, thinGrid = "1.0",
  keepClass = "2", bulge = "1.5", stepSize = "city",
  subSize = "ultra_fine", gridSize = "1.0",
  proj4 = "+proj=utm +zone=32 +datum=WGS84 +units=m +no_defs",
  rscale = "0.01 0.01 0.01", stepoverlap = NULL, cores = "2",
  xoff = 0, yoff = 0, outpath = NULL, pathLastools = NULL,
  verbose = FALSE, cutExtent = NULL, cutSlice = NULL)

Arguments

tool

default is lasinfo additionally you may choose lasrepair, lasthin, lasmerge, lasground_new, las2dem, las2txt, lasoverage, lasclip

lasFile

default is NULL path to the laz/las file(s)

thinGrid

default 0.5 meter. Grid stepsize for data thinning

keepClass

default is 2. Default ground class of las/laz conform data

bulge

default is 1.5. 'A parameter to filter spikes it is set to a stepSize/10 and then clamped into the range from 1.0 to 2.0

stepSize

default is 25 meter. lastools key words if city,town,metro,nature,wilderness or experiment with free values

subSize

= "8", default is 8 meter. lastools key words if extra_coarse,coarse,fine,extra_fine,ultra_fine,hyper_fine or experiment with free values

gridSize

resolution of the DTM raster

proj4

default is EPSG 32632, any valid proj4 string that is assumingly the correct one

rscale

rscale

stepoverlap

Spacing of overlap steps aused in lasoverage, default is NULL

cores

number of cores that will be used

xoff

xoff

yoff

yoff

outpath

outpath

pathLastools

character. folder containing the Windows binary files of the lastools

verbose

keep it quiet

cutExtent

NULL

cutSlice

NULL

Examples

Run this code
# NOT RUN {
require(uavRst)
require(link2GI)
# get a las file from the Spain authorithy (29.2 MB)
# source: (https://b5m.gipuzkoa.eus/url5000/es/G_22485/PUBLI&consulta=HAZLIDAR)
utils::download.file(url="ftp://ftp.geo.euskadi.net/lidar/LIDAR_2012_ETRS89/LAS/038/522-4812.zip",
                           destfile="522-4812.zip",  quiet = TRUE, mode = "wb")
unzip("522-4812.zip",junkpaths = TRUE,overwrite = TRUE)

# convert from laz to las
lastool(tool="las2txt","522-4812.las")

# view it
head(read.table("522-4812.txt",sep = ","))

# }

Run the code above in your browser using DataCamp Workspace