[Qgis-user] Labeling Lines with Bearings

Springfield Harrison stellargps at gmail.com
Thu Feb 3 00:37:02 PST 2022


Hello Phil & Calvin,

Thanks very much to you both for those tips.

The Vector Shake Tools options were good but required some extra work to 
transfer the new information to the existing layer.  I think I could 
have made it work but then found one of the options in Stack Exchange to 
be exactly what was needed.

This is it:

"And now it is even easier than Kay's answer -first use 'explode lines' 
tool, yielding all line segments, then calculate azimuth with field 
calculator: *main_angle($geometry)*".

This is brilliant, it can be used to populate an attribute field in the 
table or directly in a label formula as desired.  Exactly the solution I 
was looking for!

Thanks very much to you both, this is a great resource…

--------
Cheers, Spring



On 02/Feb/2022 16:58, Phil Wyatt wrote:
> Hi Spring,
>
> Bottom  couple of posts in this stackexchange question should get you started
>
> https://gis.stackexchange.com/questions/55449/how-do-i-find-vector-line-bearing-in-qgis-or-grass
>
> Cheers - Phil
>
> -----Original Message-----
> From: Qgis-user <qgis-user-bounces at lists.osgeo.org> On Behalf Of Springfield Harrison
> Sent: Thursday, 3 February 2022 10:30 AM
> To: qgis-user at lists.osgeo.org
> Subject: [Qgis-user] Labeling Lines with Bearings
>
> Hello,
>
> I need to put the line direction (azimuth) into a line label. Some searching has not come up with anything.
>
> Is there a way?  Thanks very much . . . .
>
> --------
> Cheers, Spring
>
>
>
> _______________________________________________
> 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/20220203/30fdc3f7/attachment.html>


More information about the Qgis-user mailing list