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 <carloslda...@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 (< >> uja...@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: uja...@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 <carloslda...@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@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@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@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user