[Qgis-user] Labeling Lines with Bearings
C Hamilton
adenaculture at gmail.com
Fri Feb 4 07:50:33 PST 2022
With the Shape Tools measurement layer, there is an option that you can
check to retain the original attribute information and copy it to the
output file, but it looks like you have a solution that you like. There are
usually multiple ways to solve a problem.
Best of luck,
Calvin
On Thu, Feb 3, 2022 at 3:37 AM Springfield Harrison <stellargps at gmail.com>
wrote:
> 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> <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 listQgis-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/20220204/630792d3/attachment.html>
More information about the Qgis-user
mailing list