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

C Hamilton adenaculture at gmail.com
Fri Apr 9 07:27:08 PDT 2021


There is a somewhat obscure feature to the Shape Tools plugin
<https://plugins.qgis.org/plugins/shapetools/> 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 it will work for you or not.

Once you install the Shape Tools plugin, run this algorithm from the QGIS
menu "Vector->Shape Tools->Geodesic measurement layer". Make sure "Measure
total length rather than each line segment" is NOT checked then run it. It
will display measurements of each segment in your lines, but if you open up
the attribute table, you will see a "heading_to" attribute which is your
azimuth. You could right-mouse click on your new layer and change the label
to the heading_to attribute to have it displayed on the map. I probably
should add a feature to that algorithm that allows you to display either
the distance or azimuth.

Regards,

Calvin



On Fri, Apr 9, 2021 at 8:22 AM carlos h <carloslda256 at gmail.com> wrote:

> 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 jue, 8 abr 2021 a las 22:17, chris hermansen (<clhermansen at gmail.com>)
> escribió:
>
>> David & list,
>>
>> On Thu, Apr 8, 2021, 20:02 David Strip <qgis-user at stripfamily.net> 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 polygon only has one edge, unless it has interior
>> holes. That's what the $geometry would be, anyway.
>>
>>> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20210409/6b7a326a/attachment.html>


More information about the Qgis-user mailing list