Convenience function over st_linestring_add_endpoints and st_sf_linestring_from_points Takes a potentially complicated linestring and converts it into a simple linestring based only on the *endpoints* of the initial linestring (keeps the geometry as LINESTRING)

st_linestring_to_sf_linestring_endpoints(shp_segments)

Arguments

shp_segments

Value

shp_segments_endpoints