4

I'm using QGIS 3.2 and want to manually move a few labels on a layer but when I try to use the move labels tool I can't move them. I can however rotate and change them using those tools. I looked in the Auxilliary Storage and it seems like the move tool is not creating new fields for the movement whereas the rotation and change tools can. Is there any reason the move isn't working while the others area?

  • The auxiliary fields are a relatively new feature (new since 3.0), so you're probably experiencing a bug. You can make a bug report (check first to make sure it's not already been reported). – csk Jul 26 '18 at 18:35
4

This is a known bug. It was reported for QGIS 3.0.3 and was fixed, but it re-appeared in 3.2.1.

Your options are:

  1. Wait for a bug fix.

  2. Revert to QGIS 3.2.0 - download old version of QGIS here.

  3. Use a static field for data-defined label positions.

    Create fields called "LabelX" and "LabelY", with Field Calculator expressions x($geometry) and y($geometry), respectively. Set these fields to control the label position.

    With the layer in editing mode, try using the Move Label tool - hopefully it will re-position the labels and change the "LabelX" and "LabelY" values. If not, you'll have to position your labels by manually editing the values in these fields.

| improve this answer | |
  • Thanks, I did know about the bug in earlier versions but I didn't realize it had resurfaced. I'll have to use the workaround for now. – Azrie Jul 27 '18 at 20:01
  • It seems to be present in 3.4 even though the issue is closed on Github. – TurboGraphxBeige Feb 12 '19 at 14:15
  • This is not the place for a bug report, if you discover that a closed bug is still occurring please update the bug report itself. – csk Feb 14 '19 at 18:02
  • I had the same issue in 3.6.2 $x and $y didn't work, but x($geometry) and y($geometry) did, and I could reposition using the tools afterwords. – Brian Fisher Sep 20 '19 at 1:04
  • My mistake. $x and $y only work for point layers. – csk Sep 20 '19 at 15:48
8

I had the same problem and opening the layer property, I saw the coordinates of the label apearing in red :

label coordinates

By clicking on the menu (on the red icone) and selecting "store data in the project", I was able to solve the problem and move the labels. I hope it works for you as well !

| improve this answer | |
5

This bug is still present in version 3.6.2.

You need to open the Layer Property, click on each of the data defined coordinates X and Y: screen1

and select the "store data in project" box: screen2

| improve this answer | |
0

I find that this problem occurs in cases where you have selected "Store Data in Project", and you have modified the label using the "Change label" button on the tool bar. So one can either go back to the old way where you do not "store data in project"; or if you are storing your data in the project, and you need to modify a label, make the change by opening the attribute table and changing it there. Then everything seems to work out ok!

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.