Extend a geos_geometry linestring from, one or both ends, by a given distance (meters)
geos_extend_line.Rd
Extend a geos_geometry linestring from, one or both ends, by a given distance (meters)
Arguments
- line
sf linestring or geos_geometry linestring to extend
- distance
numeric value in meters or a vector of length 2 if 'end = "both"' where
- dir
character, determines whether to extend the linestring from the 'tail', 'head' or 'both' ends
- with_crs
logical, whether a CRS should be prescribed to extended output geos_geometry linestring