1

How do I create lines for all points on the layer where the same radian and same length of line are representated on all points regardless of the point locations?

11
  • What is the -90° angle for? Wouldn't you just need azimuth and distance?
    – Gabriel
    Jun 3, 2021 at 15:53
  • Yeah, your question does not make sense: azimuth is the angle of the line. Could you provide a screenshot of what you want to achieve?
    – Babel
    Jun 3, 2021 at 16:06
  • No: -90 degrees is the azimuth. What do you understand an azimuth to be? Can you show us an example? See also here: gis.stackexchange.com/q/264422/88814
    – Babel
    Jun 3, 2021 at 16:54
  • Edit your question and add the screenshot there.
    – Babel
    Jun 3, 2021 at 18:19
  • 1
    @GeoCord For my answer to make sense, it'd be good to edit your question removing the ambiguity.
    – Gabriel
    Jun 3, 2021 at 19:11

1 Answer 1

2

All you need to achieve what you're looking for is the Geometry by expression tool. Expression:

make_line(start_point($geometry),project(start_point($geometry),4000000,4.714))

This should draw a line 4000km long, if your layer units are meters, at 270° from North. The project function throws a point a certain length away from your original point in a certain direction in radians.

Bear in mind that such long lines will have radically different shapes on different map projections. If you're looking for a loxodrome, you should be working in a conformal projection.

There might also be problems if your line crosses the limits of a projection so you will need to take that into account.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.