Difference between revisions of "QGIS Convert Rotate Label to Line"

From Tuflow
Jump to navigation Jump to search
(Created page with "=Introduction= There are times when it is desirable to rotate a label to match the line direction. For example when labelling elevation or flood level contours. There seems to ...")
 
 
Line 24: Line 24:
 
<br>
 
<br>
 
[[File:QGIS Rotated Labels 02.JPG|600px]]
 
[[File:QGIS Rotated Labels 02.JPG|600px]]
 +
<br>
 +
<br>
 +
{{Tips Navigation
 +
|uplink=[[QGIS_Tips | Back to QGIS Tips And Tricks]]
 +
}}

Latest revision as of 14:41, 22 June 2021

Introduction

There are times when it is desirable to rotate a label to match the line direction. For example when labelling elevation or flood level contours. There seems to be a number of ways of doing this in QGIS. Two methods are described below.

Method 1

  1. Right click on the layer you wish to label in the table of contents, and select Properties.
  2. Navigate to the Labelling tab.
  3. Enable the Display Labels option and select the field you wish to label.
  4. Under the Angle field. Select Auto. As shown below.
  5. QGIS Rotated Labels 01.JPG

Method 2

  1. Choose Layer >> Labelling from the menu items.

  2. QGIS Rotated Labels 03.jpg
  3. Select Label this layer with and set the field.
  4. Navigate to the Advanced tab and set the placement to Parallel, as shown below.
    QGIS Rotated Labels 04.jpg

Example

Regardless of which method you used, the labels should be rotated to the line as shown in the image below.
QGIS Rotated Labels 02.JPG

Up
Go-up.png Back to QGIS Tips And Tricks