Build Spatial Network via Delaunay Triangulation
Source:R/utils_spatial.R
getSpatialNeighbors_Delaunay.RdConstructs a spatial adjacency matrix using Delaunay triangulation. Two points are considered neighbors if they share an edge in the triangulation.
Arguments
- coords
Numeric matrix of spatial coordinates. Rows are spatial locations, columns are x, y (and optionally z) coordinates.
- filter_dist
Numeric or NA. Maximum distance threshold for neighbors. Default is NA (no filtering).
- binary
Logical. If TRUE (default), return binary adjacency matrix.
- verbose
Logical. Whether to print progress messages. Default is FALSE.