@@ -115,7 +115,7 @@ read.las = function(files, select = "*", filter = "", transform = "")
115
115
read.lasheader = function (file )
116
116
{
117
117
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 " )
119
119
file <- enc2native(normalizePath(file ))
120
120
121
121
if (! valid ) stop(" File not found" , call. = F )
@@ -132,7 +132,7 @@ stream.las = function(ifiles, ofile = "", select = "*", filter = "", polygons =
132
132
ifiles <- enc2native(normalizePath(ifiles ))
133
133
ofile <- enc2native(normalizePath(ofile , mustWork = FALSE ))
134
134
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 " )
136
136
137
137
if (! all(valid )) stop(" File not found" , call. = F )
138
138
if (! all(supported )) stop(" File not supported" , call. = F )
0 commit comments