<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto">You can create a line using both centroid then use the azimuth function.<div><br></div><div><a href="https://gis.stackexchange.com/questions/264422/displaying-azimuth-of-line-in-qgis">https://gis.stackexchange.com/questions/264422/displaying-azimuth-of-line-in-qgis</a><br><br><div dir="ltr">Nicolas Cadieux<div><a href="https://gitlab.com/njacadieux">https://gitlab.com/njacadieux</a></div></div><div dir="ltr"><br><blockquote type="cite">Le 12 févr. 2023 à 12:57, Alexandre Rodier via QGIS-User <qgis-user@lists.osgeo.org> a écrit :<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><div class="yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div dir="ltr" data-setdir="false">Dear list.</div><div dir="ltr" data-setdir="false">I have a question I am not able to resolve:</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">I need to calculate the orientation (North, East, South or North) of a feature (Polygon, a parcel) respect of another one (Line, a road).</div><div dir="ltr" data-setdir="false">I calculated the azimuth of the two features using the centroids of each but the formulas I found don't really work, or I am doing something wrong (it's probably that :-) ).</div><div dir="ltr" data-setdir="false">I am sure that's a simple problem but I am quite blocked.</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">Thanks in advance for your help.</div><div dir="ltr" data-setdir="false">Alex</div></div><div><bitmap.png></div><span>_______________________________________________</span><br><span>QGIS-User mailing list</span><br><span>QGIS-User@lists.osgeo.org</span><br><span>List info: https://lists.osgeo.org/mailman/listinfo/qgis-user</span><br><span>Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user</span><br></div></blockquote></div></body></html>