Re: [Qgis-user] Generate the bearing in the attribute table

2021-04-09 Thread C Hamilton
There is a somewhat obscure feature to the Shape Tools plugin that will calculate the distance of each segment in a line and it also calculates the azimuth as well, but you will not automatically see it as it is in the attribute table. I don't know if

Re: [Qgis-user] Generate the bearing in the attribute table

2021-04-09 Thread Kirk Schmidt
Hi Carlos; It seems you have the calculation of azimuth figured out.  I would generate a new filed in the attribute table and use the field calculator to calculate your bearings. If you are comfortable with python, you can create a script as well. If you are using a projected coordinate

Re: [Qgis-user] Generate the bearing in the attribute table

2021-04-09 Thread carlos h
Hello, I think I made a conceptual error, it is not a polygon, but a polyline that has "n" number of vertices. https://ibb.co/vsGF22W I think that when you see the attached image you will understand what I want, what I want is to generate the bearing in the attribute table. Thanks CA El

Re: [Qgis-user] Generate the bearing in the attribute table

2021-04-08 Thread chris hermansen
David & list, On Thu, Apr 8, 2021, 20:02 David Strip wrote: > On 4/8/2021 6:32 PM, chris hermansen wrote: > > Please correct me if I am wrong but are not the start and end points of a > polygon the same? > > I believe he's referring to the start and end point of each edge. > As far as I know a

Re: [Qgis-user] Generate the bearing in the attribute table

2021-04-08 Thread David Strip
On 4/8/2021 6:32 PM, chris hermansen wrote: Please correct me if I am wrong but are not the start and end points of a polygon the same? I believe he's referring to the start and end point of each edge. ___

Re: [Qgis-user] Generate the bearing in the attribute table

2021-04-08 Thread chris hermansen
Carlos and list, On Thu, Apr 8, 2021, 17:13 wrote: > > Hi Yes! > > For example this formula gives the azimuth: > > azimuth (start_point ($ geometry), end_point ($ geometry)) > > What I require is the same ... but that you give me the angle not in > azimuth, but in Bearing ... > Please correct

[Qgis-user] Generate the bearing in the attribute table

2021-04-08 Thread carloslda256
Hi Yes! For example this formula gives the azimuth: azimuth (start_point ($ geometry), end_point ($ geometry)) What I require is the same ... but that you give me the angle not in azimuth, but in Bearing ... For example N30 ° 30'25´´E, S20 ° 35E etc Thanks CA

Re: [Qgis-user] Generate the bearing in the attribute table

2021-04-08 Thread David Strip
are you asking for the bearing between each successive pair of vertices? ie, the bearing from vertex n to vertex n+1? ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Generate the bearing in the attribute table

2021-04-08 Thread Sebastian Gutwein
Carlos- Interesting problem- You might get better responses on stack exchange. I have the same confusion as Ujaval. Each side of your polygon will have a different bearing. If all you care about is the average angle then you can use this expression main_angle( $geometry) This will return azimuth

Re: [Qgis-user] Generate the bearing in the attribute table

2021-04-08 Thread carlos h
Hello, for example have this in the attribute table: https://ibb.co/wWn4PfM What I need is to have the bearing in the polygon's attribute table. Thanks CA > > > [image: image.gif] > El jue, 8 abr 2021 a las 10:49, Ujaval Gandhi () > escribió: > >> Can you elaborate with an example? It's

Re: [Qgis-user] Generate the bearing in the attribute table

2021-04-08 Thread Ujaval Gandhi
Can you elaborate with an example? It's not clear what the bearing would be for a polygon. [image: Logo] Ujaval Gandhi Spatial Thoughts mobile: +91-8095684687 email: uja...@spatialthoughts.com [image: LinkedIn icon]

[Qgis-user] Generate the bearing in the attribute table

2021-04-08 Thread carlos h
Hello, nice to write here. How can I generate the bearing in the attribute table of a polygon? the bearing not in azimuth, but for example N30E etc Thanks CA ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: