View source: R/linestring_endpoints.R
st_sf_linestring_from_points | R Documentation |
From a df where each row represents an edge in 2D of the form (lng_1,lat_1), (lng_2,lat_2), create an sf object with LINESTRING geometry
st_sf_linestring_from_points(
df_segments,
col_start_x = "start_x",
col_start_y = "start_y",
col_end_x = "end_x",
col_end_y = "end_y",
crs = 4326
)
col_start_x |
start represents the first endpoint (start is a misnomer there is no edge orientation) |
col_end_y |
shp_segments_endpoints sf object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.