# Questions tagged [angles]

From Wikipedia: In geometry, an angle is the figure formed by two rays, called the sides of the angle, sharing a common endpoint, called the vertex of the angle. Angles are usually presumed to be in a Euclidean plane, but are also defined in non-Euclidean geometry.

129 questions
Filter by
Sorted by
Tagged with
132 views

### Calculating main_angle of polygons using PyQGIS

According to Calculating Polygon Main Angle using QGIS, it is possible to find the main_angle of a polygon by using a field expression like: main_angle(\$geometry) Can this function be called using ...
123 views

### Labelling line with angles from 0º to 360º in QGIS

Labelling lines with the following function: round(degrees(atan2(yat(-1)-yat(0), xat(-1)-xat(0))), 1) || ' º' As you can see in the screenshot, this expression calculates the orientation angle of the ...
146 views

### Rotating features with multiple geometries in one layer using PyQGIS

I have a layer containing several small square geometries in QGIS. I want to tilt these ones by one to the same angle. So I wrote the following Python code for that, but it does not work properly. ...
167 views

### Create line-type symbology perpendicular to a segment in QGIS

I want to create a symbology (line type) for a point layer in QGIS. This line must be perpendicular to the segments of a polygon. I attach an image: To do this I entered an expression in the rotation ...
63 views

### Line geometries thematized by graduated size according median length and angled by median angle

I would like to find a dynamic method, using a Geometry Generator expression, to draw a categorized lines geometries from a range values of lines angles I try to expose the initial state of the lines ...
127 views

### Create raster with angles between single point and all raster pixels in QGIS [duplicate]

I would like to create a raster in which the cell values contain the angle between that cell and a single vector point. It would be as though a line were projected between the cell and the point, and ...
110 views

### Why angleAtVertex() returns different value than angle_at_vertex in Field Calculator using PyQGIS

When using angle_at_vertex(\$geometry,0) 324.022 in the Field Calculator of QGIS the values seem correct from a visual check. However when using feature.geometry().angleAtVertex(0) 5.616644978134382 ...
1 vote
43 views

### Combining lines with similar angles in QGIS [closed]

I have a lines layer representing hedge lines. Each hedge is split at a 'junction'. I want to combine the hedgerow lines that are travelling in a similar direction to have only one hedge line. I can ...
69 views

### Is it possible to keep rotation values relative to the north in line pattern fill when making a print layout with rotation in map?

I have a polygon that I am displaying with Line pattern fill. The orientations of the pattern fill is set by an attribute in the file with the value of the angle rotation. I am creating a print layout ...
98 views

### Determine the heading of a polygon by the longest side

I want to add direction arrows of polygons based on first drawn points of a polygon in QGIS. Heading of a polygon should be also added to a column heading of polygons layer. The solution should be an ...
1 vote
71 views

### Understanding latitudes longitudes and angles

I am very new to geographic concepts. I already know and understand the concepts of latitude and longitude. What I am trying to find is the angle between two points having those points data. First I ...
73 views

### Viewing Angle Effect On Spectral Reflectance Sentinel-2

I am new to remote sensing and would like resources and literature explaining the effect of viewing angle on spectral reflectance for satellites. I have read the study by Moriya et al translated to ...
162 views

### Adjusting angles after drawing polygon in ArcMap

I need to adjust the angles of a polygon that I've drawn in the ArcMap environment. In fact, I've converted the polyline to polygon by using data management tools and features. Now I want to modify ...
135 views

### Add angle of point from road as seen from left to right?

I have a layer of trees (purple points) that I want to add a column that equals the order of trees by angle if seen from left to right. For example, with the property with three trees, you would stand ...
1 vote
496 views

### Converting aspect/direction raster from geographic degrees to arithmetic radians

I have a raster/grid representing e.g. terrain aspect or flow direction, coded in geographic degrees (0-360°, clockwise from the north). I would like to convert it in arithmetic radians (0-2π, ...
273 views

### What is angle value in points along geometry in QGIS?

I generated the points along geometry from Processing toolbox and there is an angle field as default. What does it stand for?
1k views

### Calculate angle between two 3D points [closed]

Given two points with xyz-coordinates, how to find the angle between them as shown in the picture. Is there a tool for it in ArcGIS Pro? I have looked into PointGeometry, but it did not seem to have ...
49 views

### sunAngle() calculation in R giving wrong results

I need to find the hourly sun angle (angle at which the sun strikes the Earth) for a particular position (latitude, longitude) for a given day in Belgium. I used sunAngle() from "oce" ...
274 views

### Calculating the angle of view from points to a polygon

This question Calculate field of view / angle of a point to a shapefile was attempting to achieve a similar outcome to my need (calculating the angle of view between observer locations and a polygon). ...
1 vote
243 views

### QGIS 3.16 - Angles/Azimuth from advanced Digitizing in attribute table

I have simple question, how can i export angles from Advanced Digitizing Panel do attribute table? . For example , i want to draw a line of length 100m at angle -45 degree. I do it using advanced ...
169 views

### Convert GPS bearing to Cartesian angle

I have two GPS coordinates: Location A 25.07507, 55.14012. Location B 25.07571, 55.13975. The bearing between location A and location B is 332.9°. If we know that location A has a Cartesian point of ...
415 views

### Determining orientation of bay using QGIS

I want to know the orientation (relative to North) of a bay. The idea is, if I draw a line along a coast, and it crosses the bay mouth, I want the direction of the line perpendicular to that line (as ...
1 vote
257 views

### Calculating angles of vector polylines

I would like to calculate the angles of my vector polylines (and later use this value to colour them, so all the similarly angled lines (i.e. that have the same orientation / have the same colours). ...
137 views

### Measure an angle on an orthophoto or on a dense cloud

I'm currently working on QGIS 3..10.1, and I would to analyse my roof with UAV analysis. I have already made a dense cloud, an orthophoto and a DEM on agisoft metashape but now I would make few ...
224 views

### Angle of lines between two points varies between "90" and 270"

I have several sets of points on a layer, with all sets of points in nearly the same geographic location. I use the "points to paths" function and then explode the lines. I then use the ...
3k views

### Calculating interior angles of polygons or lines in QGIS

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 ...
993 views

### Simplifying polygon by inner angle in QGIS

I'm trying to simplify a polygon using the interior angle of a vertex as the "tolerance" instead of the distance between vertexes. For e.g. the polygon in the image below would lose one ...
1 vote
1k views

### Calculating azimuth angle from two X,Y,Z points

I'm following @whuber's post for calculating azimuth and elevation angles based on two vector3's. The elevation equation works great and gives me numbers that makes sense. I'm running into issues with ...
403 views

### Generalizing line with angle rules in QGIS

I'm looking for an automatic way to generalize/simplify vector lines in QGIS like the following picture : I would like the generalization to include only the angles indicated by the small star on the ...
627 views

### Calculating average slope and compass point of polygons in QGIS 3.18

I am using QGIS to rank about 800 PV areas according to their potential. I have a vector (.shp) layer with certain areas in polygons (inc. attribute table, every polygon has it's own ID). Now I would ...
204 views

### Angle from x axis with QGIS

I am using QGIS 3.10. I am trying to make an angle of line from x-axis in 0-180 range. This picture shows what I'm trying to do. I want green lines to have angle of 140 for the upper one and -52 for ...
1 vote
73 views

### Display angle of each line feature within a specific field for that layer using UpdateCursor method

So I want to calculate angles for each line feature layer using UpdateCursor method. So far I have progressed with the code but what it is doing is; it is giving the result of the last feature angle ...
80 views

### Plotting polygon on map with length of sides known and lat lng known only for two vertices and no angles known

I have an image(a polygon), generated by survey department from a field survey. I know the lat lng of two vertices and the length of all sides.I do not know the size of the angles.(Using a protractor ...
983 views

### Calculating dominant angle of a polygon in QGIS without main_angle function

How can I calculate dominant angle of a polygon in QGIS without main_angle function? I have a shapefile of Oriented Minimum Bounding Box rectangles (accessible from the following link: https://drive....
8k views

### Finding interior angles of a triangle using PyQGIS

I need interior angles of a triangle (QgsTriangle object). It has angles() method. There is an example in documentation. But sometimes the method doesn't give correct results I expect. For example: ...
1k views

### Resizing rectangle by dragging one side and retaining all right angles using QGIS

I cannot resize a rectangle polygon feature in QGIS in a way that retains right angles on all the vertices. There does seem to be an “intent” for this capability to exist via the “snap to common angle”...
1 vote
86 views

### R statspat package (or similar pkg) and convert back to spatial objects

I've been testing the waters and doing some basic overview on the statspat package. This is a complex package and would likely require some serious effort to jump in and then get familiar with the ...
1 vote
75 views

### Calculate angle of view from a point based on DEM using QGIS

I'm looking for a way to calculate the angle of view from a point on a DEM, in particular from the highest point of a terrain relief (corresponding to the red dot in this image below). To better ...
1 vote
115 views

### Calculating midpoint between every two closest points using ArcGIS Pro

I am looking to try and identify the midpoint between two closest points in my layer in ArcGIS Pro. The reason being that I work in the utilities industry and I am trying to calculate the angle ...
392 views

### Setting vertical scan angles in visibility analysis (viewshed) using QGIS

Is it possible, doing a visibility analysis (viewshed) in QGIS, to set a vertical angle of search from the observer points? In ArcGIS Pro viewshed, there are the vertical upper angle and vertical ...
1 vote
2k views

### Compute elevation and azimuth from lat, lon, and altitude

Given the latitude, longitude and altitude of two points (in my case satellite and ground antenna) I would like to compute the azimuth and elevation angle between the two points from the ground ...
887 views

### What does the "bisector angle of vertex for original geometry" mean in the Extract Vertices tool?

I need to calculate the number of notches in my polygons. Therefore I need to know the angles of the vertices in a set polygons. I managed to extract a value for the angle by the Extract Vertices tool ...
1 vote
293 views

### Gradians to degrees with zero

I want rotate symbol, but the angle is in gradians (grade, gon) with zero on east. How to convert this angle to degrees with zero on north ? I try (angle*0.9 + 90), but e.g. for angle with 380 gon => ...
361 views

### How can I calculate the course angle of two coordinates in decimal degrees?

I want to calculate course angle of two given decimal degrees, like shown in the following picture: In the above picture the result would be 135° The coordinates are given in decimal degrees, e.g. (...
1 vote
450 views

### Converting radians to arithmetic degrees

I need to convert angles that are in radians from Due east to arithmetic degrees for Creating arrows based on GPS velocities to show displacement The Radians definition for my data is: Degrees ...
1k views

### Calculating intersection angles of multiple polylines using QGIS

I have one vector layer of multiple polylines that intersect each other in QGIS. What I want to do: calculate all intersections angles (2-ray, 3-ray, 4-ray and 5-ray types) in this vector layer. What ...
527 views

### Rotating Text -90 in QGIS Composer

I have rotated some text labels by -90 in my project. I want them to stand vertically on an alignment bar. If the map window with the alignment bar also has a rotation the text is no longer vertical ...
669 views

### QGIS - Rotating all symbols to face a single point

I am creating a map with airports, using an airplane symbology (svg). Instead of having all small plane symbols turned north, I would like to rotate them to be all turned to Paris. I have 28 airport ...