0

I have following problem: I created a polygon shapefile. Now I want to label the polygons according to a certain column in the attribute table. No problem so far.

When I manually move the labels some labels disappear. The more labels I move the more labels disappear.

I tried many different things in the label settings as ticking "show all labels for this layer (including colliding labels)", "Label every part of multi-part features" or untick "Discouraging labels from covering features".

I have no idea how to solve that problem and would be happy with any ideas. I could also upload the data (but I don't know how to do it).

8
  • What version of QGIS are you using? – Mapperz Sep 18 '20 at 13:38
  • Which primary key are you using for the auxiliary storage data? – Val P Sep 18 '20 at 13:45
  • I am using version 3.8. As primary key I use the same column as I use for the labels. – FreddySorbe Sep 18 '20 at 13:54
  • 3
    @FreddySorbe try using a different key, preferably one with a unique integer value – DPSSpatial_BoycottingGISSE Sep 18 '20 at 13:59
  • 1
    @FreddySorbe basically you need to point to a column of unique values because QGIS is going to store the label override X,Y values to a temporary column. If you point to a column that has duplicate values, any label that has that same value will get the X,Y of the label you just moved, which is why you're seeing labels disappear. – DPSSpatial_BoycottingGISSE Sep 18 '20 at 15:12
3

You need to point to a column of unique values because QGIS is going to store the label override X,Y values to a temporary column and store the changes using unique values for each feature.

If you point to a column that has duplicate values, any label that has that same value will get the X,Y of the label you just moved, which is why you're seeing labels disappear.

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.