Skip to main content
Tweeted twitter.com/StackGIS/status/1461982657412313088
added 134 characters in body
Source Link
Babel
  • 74.9k
  • 15
  • 87
  • 227

The problem

In QGIS, it's easy to calculate areas of polygons or lengths of lines using QGIS expressions with area ($geometry) / $area or length($geoemtry) / $length respectively. However, there is no expression to measure angles based on the three points that define it.

The question

Given a polygon of any shape in QGIS, how can interior angle be measured apart from the manual measuring tool (toolbar icon)measuring tool (toolbar icon)?

What I tried

What sounds quite easy at the first glance is more complicated. QGIS expressions offer a few angle-functions as:

  • line_interpolate_angle
  • angle_at_vertex
  • main_angle
  • azimuth

However, there is no get_angle_at_vertex(geometry,index) function so that you could calculate the angle of any polygon- or line-geometry at a certain vertex and neither an angle (point1,point2, point3) function.

Given the points 1, 2 and 3: how to get the angle at point 2, formed by the line connecting these three points and on the left side in drawing-order?

enter image description here

The problem

In QGIS, it's easy to calculate areas of polygons or lengths of lines using QGIS expressions with area ($geometry) / $area or length($geoemtry) / $length respectively. However, there is no expression to measure angles based on the three points that define it.

The question

Given a polygon of any shape in QGIS, how can interior angle be measured apart from the manual measuring tool (toolbar icon)?

What I tried

What sounds quite easy at the first glance is more complicated. QGIS expressions offer a few angle-functions as:

  • line_interpolate_angle
  • angle_at_vertex
  • main_angle
  • azimuth

However, there is no get_angle_at_vertex(geometry,index) function so that you could calculate the angle of any polygon- or line-geometry at a certain vertex and neither an angle (point1,point2, point3) function.

Given the points 1, 2 and 3: how to get the angle at point 2, formed by the line connecting these three points and on the left side in drawing-order?

enter image description here

The problem

In QGIS, it's easy to calculate areas of polygons or lengths of lines using QGIS expressions with area ($geometry) / $area or length($geoemtry) / $length respectively. However, there is no expression to measure angles based on the three points that define it.

The question

Given a polygon of any shape in QGIS, how can interior angle be measured apart from the manual measuring tool (toolbar icon)?

What I tried

What sounds quite easy at the first glance is more complicated. QGIS expressions offer a few angle-functions as:

  • line_interpolate_angle
  • angle_at_vertex
  • main_angle
  • azimuth

However, there is no get_angle_at_vertex(geometry,index) function so that you could calculate the angle of any polygon- or line-geometry at a certain vertex and neither an angle (point1,point2, point3) function.

Given the points 1, 2 and 3: how to get the angle at point 2, formed by the line connecting these three points on the left side in drawing-order?

enter image description here

Tiny adjustments
Link
Taras
  • 34k
  • 4
  • 73
  • 148

How to calculate angles with QGIS - Calculating interior angles of polygons or lines in QGIS

added 250 characters in body
Source Link
Babel
  • 74.9k
  • 15
  • 87
  • 227

The problem

In QGIS, it's easy to calculate areas of polygons or lengths of lines using QGIS expressions with area ($geometry) / $area or length($geoemtry) / $length respectively. However, there is no expression to measure angles based on the three points that define it.

The question

Given a polygon of any shape in QGIS, how can interior angle be measured apart from the manual measuring tool (toolbar icon)?

What I tried

What sounds quite easy at the first glance is more complicated. QGIS expressions offer a few angle-functions as:

  • line_interpolate_angle
  • angle_at_vertex
  • main_angle
  • azimuth

However, there is no get_angle_at_vertex(geometry,index) function so that you could calculate the angle of any polygon- or line-geometry at a certain vertex and neither an angle (point1,point2, point3) function.

Given the points 1, 2 and 3: how to get the angle at point 2, formed by the line connecting these three points and on the left side in drawing-order?

enter image description here

The problem

In QGIS, it's easy to calculate areas of polygons or lengths of lines using QGIS expressions with area ($geometry) / $area or length($geoemtry) / $length respectively. However, there is no expression to measure angles based on the three points that define it.

The question

Given a polygon of any shape in QGIS, how can interior angle be measured apart from the manual measuring tool (toolbar icon)?

What I tried

What sounds quite easy at the first glance is more complicated. QGIS expressions offer a few angle-functions as:

  • line_interpolate_angle
  • angle_at_vertex
  • main_angle
  • azimuth

However, there is no get_angle_at_vertex(geometry,index) function so that you could calculate the angle of any polygon- or line-geometry at a certain vertex and neither an angle (point1,point2, point3) function.

The problem

In QGIS, it's easy to calculate areas of polygons or lengths of lines using QGIS expressions with area ($geometry) / $area or length($geoemtry) / $length respectively. However, there is no expression to measure angles based on the three points that define it.

The question

Given a polygon of any shape in QGIS, how can interior angle be measured apart from the manual measuring tool (toolbar icon)?

What I tried

What sounds quite easy at the first glance is more complicated. QGIS expressions offer a few angle-functions as:

  • line_interpolate_angle
  • angle_at_vertex
  • main_angle
  • azimuth

However, there is no get_angle_at_vertex(geometry,index) function so that you could calculate the angle of any polygon- or line-geometry at a certain vertex and neither an angle (point1,point2, point3) function.

Given the points 1, 2 and 3: how to get the angle at point 2, formed by the line connecting these three points and on the left side in drawing-order?

enter image description here

Source Link
Babel
  • 74.9k
  • 15
  • 87
  • 227
Loading