st_linestring_to_sf_linestring_endpoints: Convenience function over st_linestring_add_endpoints and...

View source: R/linestring_endpoints.R

st_linestring_to_sf_linestring_endpointsR Documentation

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)

Description

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)

Usage

st_linestring_to_sf_linestring_endpoints(shp_segments)

Arguments

shp_segments

Value

shp_segments_endpoints


cgauvi/sfSpHelpers documentation built on June 30, 2023, 10:48 p.m.