Skip to content

Commit 3ad89ef

Browse files
committed
Fix bug buffer
1 parent 00d9e6b commit 3ad89ef

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

R/matching_functions.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,14 @@ lsap_matching = function(treemap, dxymax = 2, dzmax = 40, zrel = 40, unmatch_cos
7474

7575
# Extract coordinates and add a synthetic Z dimension from ZDIM
7676
# and scale it to match the XY coordinates
77-
coords_inventory_1d = treemap$inventory$ZDIM * factor
78-
coords_measure_1d = treemap$measured$ZDIM *factor
77+
coords_inventory_1d = inventory$ZDIM * factor
78+
coords_measure_1d = measured$ZDIM * factor
7979

80-
coords_inventory_2d <- sf::st_coordinates(treemap$inventory)
80+
coords_inventory_2d <- sf::st_coordinates(inventory)
8181
coords_measure_2d <- sf::st_coordinates(measured)
8282

8383
coords_inventory_3d <- cbind(coords_inventory_2d, coords_inventory_1d)
84-
coords_measure_3d <- cbind(coords_measure_2d, coords_measure_1d)
84+
coords_measure_3d <- cbind(coords_measure_2d, coords_measure_1d)
8585

8686
dist_matrix <- function(A, B)
8787
{

0 commit comments

Comments
 (0)