Skip to content

Commit 27f9212

Browse files
committed
More exports
1 parent 50e9260 commit 27f9212

File tree

8 files changed

+66
-5
lines changed

8 files changed

+66
-5
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Type: Package
33
Title: Read and Write 'las' and 'laz' Binary File Formats Used for Remote Sensing Data
44
Version: 1.8.2
55
Authors@R: c(
6-
person("Jean-Romain", "Roussel", email = "info@r-lidar.com", role = c("aut", "cre", "cph")),
6+
person("Jean-Romain", "Roussel", email = "jean-romain.roussel.1@ulaval.ca", role = c("aut", "cre", "cph")),
77
person("Florian", "De Boissieu", email = "", role = c("aut", "ctb"), comment = "Enable the support of .lax file and extra byte attributes"),
88
person("Martin", "Isenburg", email = "", role = "cph", comment = "Is the author of the LASlib and LASzip libraries"),
99
person("David", "Auty", email = "", role = c("ctb"), comment = "Reviewed the documentation"),

NAMESPACE

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
export(check_las_compliance)
44
export(check_las_validity)
5+
export(find_epsg_position)
56
export(fwf_interpreter)
67
export(header_add_extrabytes)
78
export(header_add_extrabytes_manual)
@@ -11,6 +12,8 @@ export(header_get_wktcs)
1112
export(header_set_epsg)
1213
export(header_set_wktcs)
1314
export(header_update)
15+
export(help_filter)
16+
export(help_transform)
1417
export(is_NIR_in_valid_format)
1518
export(is_RGB_in_valid_format)
1619
export(is_ScanAngle_in_valid_format)
@@ -68,7 +71,7 @@ export(is_valid_scalefactors)
6871
export(is_valid_version)
6972
export(read.las)
7073
export(read.lasheader)
71-
export(stream.las)
74+
export(read_and_write.las)
7275
export(true_size)
7376
export(write.las)
7477
export(writelax)

R/header_tools.r

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,23 @@ header_set_wktcs = function(header, WKT)
417417
return(header)
418418
}
419419

420+
#' @export
421+
#' @rdname crs_tools
422+
find_epsg_position = function(header)
423+
{
424+
tags = header[["Variable Length Records"]][["GeoKeyDirectoryTag"]][["tags"]]
425+
426+
for (i in seq_along(tags))
427+
{
428+
if (tags[[i]]$key == 3072)
429+
return(i)
430+
}
431+
432+
return(0L)
433+
}
434+
435+
436+
# Internal for lidR compatibility
420437
where_is_epsg = function(header)
421438
{
422439
tags = header[["Variable Length Records"]][["GeoKeyDirectoryTag"]][["tags"]]

R/help.R

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#' LASlib filter and transform operation
2+
#'
3+
#' Print the existing LASlib filter and transform commands
4+
#'
5+
#' @export
6+
#' @rdname LASlibdoc
7+
help_filter = function()
8+
{
9+
lasfilterusage()
10+
}
11+
12+
#' @export
13+
#' @rdname LASlibdoc
14+
help_transform = function()
15+
{
16+
lastransformusage()
17+
}

R/readLAS.r

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ read.lasheader = function(file)
130130
#' @param ifiles,ofile characters. Streaming operations.
131131
#' @param polygons list. Internal use only.
132132
#' @export
133-
stream.las = function(ifiles, ofile = "", select = "*", filter = "", polygons = list())
133+
read_and_write.las = function(ifiles, ofile = "", select = "*", filter = "", polygons = list())
134134
{
135135
stream <- ofile != ""
136136
ifiles <- enc2native(normalizePath(ifiles))
@@ -160,4 +160,5 @@ stream.las = function(ifiles, ofile = "", select = "*", filter = "", polygons =
160160
return(data)
161161
}
162162

163+
stream.las = read_and_write.las
163164

man/LASlibdoc.Rd

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/crs_tools.Rd

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/read.las.Rd

Lines changed: 8 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)