You can create a line using both centroid then use the azimuth function.

https://gis.stackexchange.com/questions/264422/displaying-azimuth-of-line-in-qgis

Nicolas Cadieux
https://gitlab.com/njacadieux

> Le 12 févr. 2023 à 12:57, Alexandre Rodier via QGIS-User 
> <[email protected]> a écrit :
> 
> 
> Dear list.
> I have a question I am not able to resolve:
> 
> I need to calculate the orientation (North, East, South or North) of a 
> feature (Polygon, a parcel) respect of another one (Line, a road).
> 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 :-) ).
> I am sure that's a simple problem but I am quite blocked.
> 
> Thanks in advance for your help.
> Alex
> <bitmap.png>
> _______________________________________________
> QGIS-User mailing list
> [email protected]
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
_______________________________________________
QGIS-User mailing list
[email protected]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to