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

Sebastian Gutwein bas at rdgland.com
Thu Apr 8 14:30:52 PDT 2021


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 of the polygon in degrees from north.
I don't know how to convert this to bearing in QGIS.



On Thu, Apr 8, 2021 at 3:28 PM carlos h <carloslda256 at gmail.com> wrote:

>
>   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 (<
>> ujaval at spatialthoughts.com>) escribió:
>>
>>> Can you elaborate with an example? It's not clear what the bearing would
>>> be for a polygon.
>>> [image: Logo] <https://spatialthoughts.com/>
>>> Ujaval Gandhi
>>> Spatial Thoughts
>>> mobile: +91-8095684687
>>> email: ujaval at spatialthoughts.com
>>> [image: LinkedIn icon] <https://www.linkedin.com/in/spatialthoughts/>  [image:
>>> Twitter icon] <https://twitter.com/spatialthoughts>
>>>
>>>
>>>
>>> On Thu, Apr 8, 2021 at 8:50 PM carlos h <carloslda256 at gmail.com> wrote:
>>>
>>>>
>>>> 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
>>>>
>>>>
>>>> [image: image.gif]
>>>> _______________________________________________
>>>> 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
>>>>
>>>
> _______________________________________________
> 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/20210408/af95883a/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.gif
Type: image/gif
Size: 42 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20210408/af95883a/attachment.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.gif
Type: image/gif
Size: 42 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20210408/af95883a/attachment-0001.gif>


More information about the Qgis-user mailing list