Skip to content

Commit

Permalink
Update buffer.R
Browse files Browse the repository at this point in the history
  • Loading branch information
jiajic committed Oct 28, 2024
1 parent 7e5f179 commit 22938d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/buffer.R
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ setMethod("settleGeom", signature("SpatVector"), function(x) {

# Create Voronoi polygons for the points
# Note: extend parameter ensures Voronoi polygons cover all buffer areas
vor <- voronoi(centroids(x), bnd = ext(x) * 1.2)
vor <- terra::voronoi(centroids(x), bnd = ext(x) * 1.2)
# voronoi does not return values in order. Reorder with index
vor <- terra::sort(vor, v = ".idx")

Expand Down

0 comments on commit 22938d5

Please sign in to comment.