5

I'm new to QGIS, but I'm experiencing what I think is a bug.

When I load the qgis_sample_data landcover raster and lakes vector layers, then enable labels for NAMES on that layer, I can only ever view one label at a time.

I've disabled simplified geometry and enabled "show all labels for this layer (including colliding labels) still to no avail.

I've attached an imgur album of screenshots to demonstrate the problem - the only thing I'm changing in those screenshots is the zoom level or pan.

Using QGIS 2.8.3 for Mac OS X Yosemite.

2
  • Does it work with only the lakes vector in your project? – ymirsson Sep 11 '15 at 13:11
  • You certainly have something odd going on. I've not used this sample data so I just tried. I'm on Windows 7 with QGIS 2.8.1 I opened QGIS afresh. Then I opened lakes.shp. Under the Lakes layer's properties I choose the labelling options, and checked the checkbox for labelling, with 'NAMES' as where it gets its labels from. Immediately I see labels on every lake. – Rostranimin Sep 11 '15 at 14:55
5

Check whether you accidentally set a limit on how many features might be labelled. There's a check box under the layer properties | labels | Rendering. It reads "Limit the number of features to be labelled to". See the image: Labelling options on QGIS

0

I had the same problem with QGIS 3.16.1-Hannover, where QGIS was only rendering one label at a time. When I panned or zoomed the view with the label off screen, another feature would get labelled instead.

Following the solutions on this page, as well as on Labels are not appearing at certain scales did not solve it for me.

It turns out it was not a rendering issue, but a data source issue. The layer source was a database and the unique value column was incorrect.

I solved this by:

  1. Right-click on layer > "Update SQL Layer..."

Update SQL Layer

  1. In DB Manager - "Column(s) with unique values": select a column which has unique values. In my case a column was selected which was mostly the same value and that seemed to be causing only one label to appear.

DB unique values column

  1. Click "Update" and close the window
3
  • @Rocky_K you can include the version of QGIS you used. – mapperx Jun 20 at 3:13
  • 1
    @mapperx: Thanks. I've edited the answer to mention that I used QGIS 3.16.1-Hannover. – Rocky K Jun 20 at 11:17
  • The layer used by the OP is not an SQL layer, so your suggestion doesn't apply to its issue. – Andrea Giudiceandrea Jun 20 at 16:04

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.