Skip to content

Commit 258e1aa

Browse files
authored
Merge pull request #821 from r-lidar/nanoflann
Nanoflann
2 parents 7bbc5dc + 5080b23 commit 258e1aa

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+1955
-769
lines changed

.gitattributes

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# https://github.com/topepo/Cubist/blob/193c8b61933e2cef65658cf0e35aa25dcd25f3b6/.gitattributes
2+
# On GitHub Actions with Windows, git will use CRLF by default when checking out
3+
# the repo. If this file has CRLF line endings, R's check process will complain.
4+
5+
configure.ac text eol=lf

.github/workflows/R-CMD-check.yaml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
config:
2525
- {os: windows-latest, r: 'devel', rglusenull: "true"}
2626
- {os: windows-latest, r: 'release', rglusenull: "true"}
27-
#- {os: macOS-latest, r: 'release', rglusenull: "true"}
27+
- {os: macOS-latest, r: 'release', rglusenull: "true"}
2828
- {os: ubuntu-latest, r: 'release'}
2929
- {os: ubuntu-latest, r: 'devel'}
3030

@@ -46,13 +46,9 @@ jobs:
4646

4747
- uses: r-lib/actions/setup-pandoc@v2
4848

49-
- name: Brew and macOS config
50-
if: runner.os == 'macOS'
51-
run: |
52-
# conflicts with gfortran from r-lib/actions when linking gcc
53-
rm '/usr/local/bin/gfortran'
54-
brew install gdal proj geos
55-
brew install --cask xquartz
49+
- name: Install macOS system dependencies
50+
if: runner.os == 'macos'
51+
run: brew install gdal proj
5652

5753
- name: Query dependencies
5854
run: |
@@ -63,7 +59,7 @@ jobs:
6359

6460
- name: Cache R packages
6561
if: runner.os != 'Windows'
66-
uses: actions/cache@v1
62+
uses: actions/cache@v3
6763
with:
6864
path: ${{ env.R_LIBS_USER }}
6965
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-2-${{ hashFiles('.github/depends.Rds') }}

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@ revdep
1212
CRAN-RELEASE
1313
/doc/
1414
/Meta/
15+
autom4te.cache
16+
config.log
17+
config.status

DESCRIPTION

Lines changed: 122 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ Package: lidR
22
Type: Package
33
Title: Airborne LiDAR Data Manipulation and Visualization for Forestry
44
Applications
5-
Version: 4.1.3
5+
Version: 4.2.1
66
Authors@R: c(
7-
person("Jean-Romain", "Roussel", email = "[email protected]", role = c("aut", "cre", "cph")),
7+
person("Jean-Romain", "Roussel", email = "[email protected]", role = c("aut", "cre", "cph")),
88
person("David", "Auty", email = "", role = c("aut", "ctb"), comment = "Reviews the documentation"),
99
person("Florian", "De Boissieu", email = "", role = ("ctb"), comment = "Fixed bugs and improved catalog features"),
1010
person("Andrew", "Sánchez Meador", email = "", role = ("ctb"), comment = "Implemented wing2015() for segment_snags()"),
@@ -32,7 +32,7 @@ Imports:
3232
lazyeval,
3333
Rcpp (>= 1.0.3),
3434
rgl,
35-
rlas (>= 1.5.0),
35+
rlas (>= 1.8.2),
3636
sf,
3737
stats,
3838
stars,
@@ -55,8 +55,125 @@ Suggests:
5555
testthat (>= 2.1.0),
5656
knitr,
5757
rmarkdown
58-
RoxygenNote: 7.3.1
59-
LinkingTo: BH (>= 1.72.0),Rcpp,RcppArmadillo
58+
RoxygenNote: 7.3.2
59+
LinkingTo: BH (>= 1.72.0),Rcpp,RcppArmadillo,Rnanoflann
6060
Encoding: UTF-8
6161
ByteCompile: true
6262
VignetteBuilder: knitr
63+
Biarch: true
64+
Collate:
65+
'Class-LAS.R'
66+
'Class-LAScatalog.R'
67+
'Class-LAScluster.R'
68+
'RcppExports.R'
69+
'add_attribute.R'
70+
'algorithm-dec.R'
71+
'algorithm-dsm.R'
72+
'algorithm-dtm.R'
73+
'algorithm-gnd.R'
74+
'algorithm-itd.R'
75+
'algorithm-its.R'
76+
'algorithm-noi.R'
77+
'algorithm-out.R'
78+
'algorithm-shp.R'
79+
'algorithm-snag.R'
80+
'algorithm-trk.R'
81+
'backward_compatibility.R'
82+
'catalog_apply.R'
83+
'catalog_boundaries.R'
84+
'catalog_fakerun.R'
85+
'catalog_intersect.R'
86+
'catalog_laxindex.R'
87+
'catalog_overlaps.R'
88+
'catalog_retile.R'
89+
'catalog_select.R'
90+
'classify.R'
91+
'classify_ground.R'
92+
'classify_noise.R'
93+
'classify_poi.R'
94+
'clip_roi.R'
95+
'connected_components.R'
96+
'decimate_points.R'
97+
'io_readLAScatalog.R'
98+
'io_readXLAS.R'
99+
'deprecated.R'
100+
'doc-drivers.R'
101+
'doc-lidR.R'
102+
'doc-parallelism.R'
103+
'doc-spatialindex.R'
104+
'engine.R'
105+
'engine_apply.R'
106+
'engine_chunks.R'
107+
'engine_crop.R'
108+
'engine_index.R'
109+
'engine_merge.R'
110+
'engine_options.R'
111+
'engine_write.R'
112+
'fasterize.R'
113+
'filters.R'
114+
'fit_shapes.R'
115+
'fullwaveform.R'
116+
'generate_las.R'
117+
'io_readLAS.R'
118+
'io_writeLAS.R'
119+
'knn.R'
120+
'las_check.R'
121+
'las_compression.R'
122+
'las_tools.R'
123+
'locate_localmaxima.R'
124+
'locate_trees.R'
125+
'merge_spatial.R'
126+
'methods-LAS.R'
127+
'methods-LAScatalog.R'
128+
'methods-LAScluster.R'
129+
'methods-LASheader.R'
130+
'metrics_cloud.R'
131+
'metrics_crowns.R'
132+
'metrics_hexagons.R'
133+
'metrics_pixels.R'
134+
'metrics_plot.R'
135+
'metrics_point.R'
136+
'metrics_polygon.R'
137+
'metrics_stdmetrics.R'
138+
'metrics_template.R'
139+
'metrics_voxels.R'
140+
'normalize.R'
141+
'normalize_height.R'
142+
'normalize_intensity.R'
143+
'plot.R'
144+
'plot.s3.R'
145+
'plugins.R'
146+
'print.R'
147+
'rasterize.R'
148+
'rasterize_canopy.R'
149+
'rasterize_density.R'
150+
'rasterize_terrain.R'
151+
'retrieve_info.R'
152+
'segment.R'
153+
'segment_shapes.R'
154+
'segment_snags.R'
155+
'segment_trees.R'
156+
'smooth_height.R'
157+
'st_area.R'
158+
'st_as_sf.R'
159+
'st_bbox.R'
160+
'st_coordinates.R'
161+
'st_crs.R'
162+
'st_hull.R'
163+
'st_misc.R'
164+
'st_transform.R'
165+
'track_sensor.R'
166+
'utils_assertive.R'
167+
'utils_base.R'
168+
'utils_chm.R'
169+
'utils_colors.R'
170+
'utils_constant.R'
171+
'utils_delaunay.R'
172+
'utils_geometry.R'
173+
'utils_is.R'
174+
'utils_misc.R'
175+
'utils_raster.R'
176+
'utils_spatial_index.R'
177+
'utils_threads.R'
178+
'voxelize_points.R'
179+
'zzz.R'

NAMESPACE

Lines changed: 17 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ export(LASheader)
171171
export(Roussel2020)
172172
export(VCI)
173173
export(add_attribute)
174+
export(add_circle3d)
174175
export(add_dtm3d)
175176
export(add_flightlines3d)
176177
export(add_lasattribute)
@@ -179,6 +180,7 @@ export(add_lasnir)
179180
export(add_lasrgb)
180181
export(add_treetops3d)
181182
export(as.spatial)
183+
export(barycenter_per_voxel)
182184
export(catalog)
183185
export(catalog_apply)
184186
export(catalog_boundaries)
@@ -197,6 +199,7 @@ export(clip_roi)
197199
export(clip_transect)
198200
export(cloud_metrics)
199201
export(concaveman)
202+
export(connected_components)
200203
export(count_not_quantized)
201204
export(crown_metrics)
202205
export(csf)
@@ -224,6 +227,7 @@ export(filter_poi)
224227
export(filter_single)
225228
export(filter_surfacepoints)
226229
export(find_trees)
230+
export(fit_circle)
227231
export(forest.colors)
228232
export(gap_fraction_profile)
229233
export(get_lidr_threads)
@@ -234,9 +238,10 @@ export(grid_metrics)
234238
export(grid_terrain)
235239
export(header)
236240
export(height.colors)
241+
export(height_above_ground)
237242
export(hexagon_metrics)
238-
export(hexbin_metrics)
239243
export(highest)
244+
export(highest_attribute_per_voxel)
240245
export(homogenize)
241246
export(index)
242247
export(interpret_waveform)
@@ -247,7 +252,10 @@ export(is.overlapping)
247252
export(is.parallelised)
248253
export(is.quantized)
249254
export(ivf)
255+
export(knn)
256+
export(knn_distance)
250257
export(knnidw)
258+
export(knnx)
251259
export(kriging)
252260
export(las_check)
253261
export(las_is_compressed)
@@ -256,46 +264,11 @@ export(las_reoffset)
256264
export(las_rescale)
257265
export(las_size)
258266
export(las_update)
259-
export(lasadddata)
260-
export(lasaddextrabytes)
261-
export(lasaddextrabytes_manual)
262-
export(lascheck)
263-
export(lasclip)
264-
export(lasclipCircle)
265-
export(lasclipPolygon)
266-
export(lasclipRectangle)
267-
export(lasdetectshape)
268-
export(lasfilter)
269-
export(lasfilterdecimate)
270-
export(lasfilterduplicates)
271-
export(lasfilterfirst)
272-
export(lasfilterfirstlast)
273-
export(lasfilterfirstofmany)
274-
export(lasfilterground)
275-
export(lasfilterlast)
276-
export(lasfilternth)
277-
export(lasfiltersingle)
278-
export(lasfiltersurfacepoints)
279-
export(lasflightline)
280-
export(lasground)
281-
export(lasmergespatial)
282-
export(lasnormalize)
283-
export(laspulse)
284-
export(lasrangecorrection)
285-
export(lasremoveextrabytes)
286-
export(lasreoffset)
287-
export(lasrescale)
288-
export(lasscanline)
289-
export(lassmooth)
290-
export(lassnags)
291-
export(lastrees)
292-
export(lasunnormalize)
293-
export(lasunsmooth)
294-
export(lasvoxelize)
295267
export(li2012)
296268
export(lmf)
297269
export(locate_trees)
298270
export(lowest)
271+
export(lowest_attribute_per_voxel)
299272
export(manual)
300273
export(mcc)
301274
export(merge_spatial)
@@ -350,19 +323,26 @@ export(range_correction)
350323
export(rasterize_canopy)
351324
export(rasterize_density)
352325
export(rasterize_terrain)
326+
export(readALS)
353327
export(readALSLAS)
354328
export(readALSLAScatalog)
329+
export(readALScatalog)
355330
export(readDAPLAS)
356331
export(readDAPLAScatalog)
357332
export(readLAS)
358333
export(readLAScatalog)
359334
export(readLASheader)
360335
export(readMSLAS)
336+
export(readTLS)
361337
export(readTLSLAS)
362338
export(readTLSLAScatalog)
339+
export(readTLScatalog)
363340
export(readUAVLAS)
364341
export(readUAVLAScatalog)
342+
export(remove_ground)
365343
export(remove_lasattribute)
344+
export(remove_noise)
345+
export(remove_water)
366346
export(retrieve_flightlines)
367347
export(retrieve_pulses)
368348
export(retrieve_scanlines)
@@ -371,7 +351,6 @@ export(segment_shapes)
371351
export(segment_snags)
372352
export(segment_trees)
373353
export(sensor)
374-
export(sensor_tracking)
375354
export(set_lidr_threads)
376355
export(shp_hline)
377356
export(shp_hplane)
@@ -397,8 +376,6 @@ export(storable_coordinate_range)
397376
export(template_metrics)
398377
export(tin)
399378
export(track_sensor)
400-
export(tree_detection)
401-
export(tree_hulls)
402379
export(tree_metrics)
403380
export(unnormalize_height)
404381
export(unsmooth_height)

0 commit comments

Comments
 (0)