filter_clusters | R Documentation |
Create groups of edges that are crossing the river in nearby locations, using a density-based clustering method (DBSCAN). This is to make sure that edges representing e.g. different lanes of the same street are treated as part of the same crossing. For each cluster, select the shortest edge.
filter_clusters(crossings, river, eps = 100)
crossings |
Crossing edge geometries as a simple feature object |
river |
The river geometry as a simple feature object |
eps |
DBSCAN parameter referring to the size (radius) distance of the neighborhood. Should approximate the distance between edges that we want to consider as a single river crossing |
A simple feature geometry including the shortest edge per cluster
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.