Convert site to the form of segment and vertice present in the river topological structure
1 | site2segvert(site_sf, arc_sf.set)
|
site_sf |
a site sf object with column: id, lon, lat, geometry, X, Y, and the snapped point information from the riverdist::xy2segvert() columns: seg, vert, snapdist |
arc_sf.set |
a arc sf object from makearc() containing columns: from, seg0, vert0, x0, y0, to, seg1, vert1, x1, y1, geometry |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.