4
I’m looking for a way to draw a line from a point and an angulation (azimuth) and then construct a polygon with the intersection of these lines.
base <- tibble::data_frame(
id = c(1, 2, 3),
x = c(10, 5, 3),
y = c(5, 10, 4),
azimute = c(330, 120, 45),
)
In the example below, each id
has an x/y coordinate and a target angle (azimuth, where 0/360 is north, 90 is west and etc).
The example lines were built using trigonometry ('in hand'), but my interest is to do a GIS (sf or sp package) because the project involves points within a Brazilian state and the spatial reference is important.
The challenge is to build the lines from each id
using the azimuths. the length of the line does not matter, it will be a great value to ensure that they intersect.
The ultimate goal is to create a polygon created from the intersection of segments.