Skip to content

Commit 0055fc5

Browse files
committedNov 1, 2024·
Update readLAS.r
unlocked .ptx and .txt for reading
1 parent c7be95c commit 0055fc5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎R/readLAS.r

+2-2
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ read.las = function(files, select = "*", filter = "", transform = "")
115115
read.lasheader = function(file)
116116
{
117117
valid <- file.exists(file)
118-
supported <- tools::file_ext(file) %in% c("las", "laz", "LAS", "LAZ", "ply", "PLY")
118+
supported <- tools::file_ext(file) %in% c("las", "laz", "LAS", "LAZ", "ply", "PLY", "ptx", "PTX", "txt", "TXT")
119119
file <- enc2native(normalizePath(file))
120120

121121
if (!valid) stop("File not found", call. = F)
@@ -132,7 +132,7 @@ stream.las = function(ifiles, ofile = "", select = "*", filter = "", polygons =
132132
ifiles <- enc2native(normalizePath(ifiles))
133133
ofile <- enc2native(normalizePath(ofile, mustWork = FALSE))
134134
valid <- file.exists(ifiles)
135-
supported <- tools::file_ext(ifiles) %in% c("las", "laz", "LAS", "LAZ", "ply", "PLY")
135+
supported <- tools::file_ext(ifiles) %in% c("las", "laz", "LAS", "LAZ", "ply", "PLY", "ptx", "PTX", "txt", "TXT")
136136

137137
if (!all(valid)) stop("File not found", call. = F)
138138
if (!all(supported)) stop("File not supported", call. = F)

0 commit comments

Comments
 (0)