I'm very new with QGIS and currently stuck with such problem in my work. Maybe some one knows how to help me?
I have made two separate layers.
Database layer with sites and antennas, containing site center points and azimuths with antennas. So I have created symbols representing such antennas by creating an offset from
y
points by the size of the symbol in a direction of azimuth data. It looks like this:I need to analyse traffic between these antennas, which has enormous amount of data, so in order to not overload the system with data I import some data of wanted object (a new layer in QGIS) containing traffic destination with latitudes of source antenna and target antenna coordinates. together with that I import the azimuth info of both points.
So I create the lines using the function:
It looks like that when I enable both layers on the map:
So where is the problem?
If you look at this lines I cannot see from which sectors to which sectors of another object the line goes to because they all are drown from the centres. How can I make some offsets in the direction of known azimuth in the source point and target point?
In another words:
have lines like this: point1xy....point2xy
I want:
point1xy+y offset (-10) in direction (azimuth1).....point2xy+y offset (-10) in direction (azimuth2)
make_line(make_point("source_longitude"+10*sin(radians("azimuth1")),"source_latitude"+10*cos(radians("azimuth1"))),make_point("target_longitude"+10*sin(radians("azimuth2")),"target_latitude"+10*cos(radians("azimuth2"))))
.project(point,distance,bearing)
function could also be used effectively in the geometry generator to create the points from which the lines are created.