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

  • 1
    May be this can help : gis.stackexchange.com/questions/207004/…, you will get the distance to the nearest node of a line – Gerardo Jimenez Mar 3 '18 at 20:31
  • Thanks, but I'm searching the DIRECTION (degree) of these minimum distance line!! – Mr Prince Mar 3 '18 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. – JoshC Mar 4 '18 at 2:04
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, privacy policy and cookie policy

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