sf object of type "POINT" with the columns and entries of the first row of x
Arguments
x
sf object of type "LINESTRING" or "MULTILINESTRING"
warn
logical; if TRUE, warn if "MULTILINESTRING" (default).
Details
It is recommended to perform line_azimuth() on single line objects, i.e.
type "LINESTRING", instead of "MULTILINESTRING". This is because the azimuth
of the last point of a line will be calculated to the first point of the
next line otherwise. This will cause a warning message (if warn = TRUE).
For "MULTILINESTRING" objects, use lines_azimuths().