[Qgis-user] Azimuth and orientation of 2 features

Nicolas Cadieux njacadieux.gitlab at gmail.com
Sun Feb 12 17:49:24 PST 2023


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 <qgis-user at lists.osgeo.org> 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
> 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/20230212/bfa47a58/attachment.htm>


More information about the QGIS-User mailing list