<html><head></head><body><div class="ydp10479ff9yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div dir="ltr" data-setdir="false">Hi all.</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">I asked yesterday how to resolve this problem: <div><div><br></div><div>"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>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><div><br></div><div dir="ltr" data-setdir="false">Thanks to Nicolas Cadieux I found this solution:</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false"><div><div dir="ltr" style="font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"><i>degrees( azimuth( make_point( to_real( "Cen_X" ),to_real( "Cen_Y" ) ), make_point(to_real( "X-centr" ),to_real( "Y-centr" )) ) )<br clear="none"></i></div><div dir="ltr" style="font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"><br></div><div dir="ltr" style="font-family: Helvetica Neue, Helvetica, Arial, sans-serif;">Where Cent_X, Cent_Y, X-centr and Y-centr are respectively the centroides of my road and my parcels.</div></div><br></div><div dir="ltr" data-setdir="false">Regards.</div></div><div><br></div><div class="ydp10479ff9signature"><div style="font-family:Helvetica, Arial, sans-serif;font-size:13px;"><div>--------------------------<br><span style="font-weight:bold;">Alexandre Rodier</span><br><b>GeĆ³grafo <img title="Emoji" alt="Emoji" src="https://s.yimg.com/nq/yemoji_assets/latest/yemoji_assets/1f30d.png" style="padding:0px 2px;vertical-align:middle;" width="16" height="16" class="ydp9b89f0f5yahoo-emoji-wrapper" data-inlineimagemanipulating="true"> Turismo sostenible <img title="Emoji" alt="Emoji" src="https://s.yimg.com/nq/yemoji_assets/latest/yemoji_assets/1f6b2.png" style="padding:0px 2px;vertical-align:middle;" width="16" height="16" class="ydp9b89f0f5yahoo-emoji-wrapper" data-inlineimagemanipulating="true"><br></b></div><div>Telf: +34 661 38 00 28<div><a href="http://www.entretierras.com" rel="nofollow" target="_blank">http://www.entretierras.com</a></div><div dir="ltr">+ info: <a href="https://www.linkedin.com/in/alexrodier/" rel="nofollow" target="_blank">https://www.linkedin.com/in/alexrodier/</a><br></div>--------------------------<br></div></div></div></div></body></html>