1

Is there a method using QGis to calculate the direction (degree) of the minimum distance from a point to a line.

I already have: - Point shapefile with hundreds of points; - Linear Shapefile with coast line;

I'm finding: - New shapefile with minimum direction from to coastline with a column in its attribute table showing the degree (from north) to these lines.

Min dist direction

3
  • 1
    May be this can help : gis.stackexchange.com/questions/207004/…, you will get the distance to the nearest node of a line Commented Mar 3, 2018 at 20:31
  • Thanks, but I'm searching the DIRECTION (degree) of these minimum distance line!!
    – Mr Prince
    Commented Mar 3, 2018 at 23:36
  • But you need the lines, too, yes? If you follow the linked post to generate these lines, calculating the azimuth is simple.
    – jcarlson
    Commented Mar 4, 2018 at 2:04

1 Answer 1

1

Open Field Calculator, add a new field to your minimum distance lines attribute table.

Enter the expression degrees( azimuth( start_point( $geometry), end_point( $geometry))).

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.