[GIS] Display Point Labels in QGIS

labelingqgis

Question

I have coordinates and points from that coordinates. So what do I need to do to show point numbers on the map?

It's my second day with QGIS

Best Answer

Making the ids:

  1. Right-click on your point layer and Open the attributes table from the pop-up menu.
  2. Make the layer editable by clicking on the yellow pencil icon
  3. Click the Open Field Calculator button (last on the right - abacus icon)
  4. Ensure that Create a new field is checked (it should be by default). Call the field 'Id' (or something) - you can accept the defaults of Integer, width 10.
  5. In the Functions List section, expand Record (little plus sign next to it) and double click on $rownum. This will add $rownum to the Expressions section.
  6. Click OK and then save.

You now have id's based on the row number - you can follow a similar procedure to make Ids based on something else or manually edit them etc.

Next you need to label the points. Right-click on the points layer and select Properties (or double-click on the layer). Go to the labels section and in the drop-down menu at the top, select Id. Explore the labeling options to see how to adjust the font, placement etc. You could also skip the step of making ids and just label using $rownum - I just like explicit ids.

Related Question