More

Moving labels manually using expression in QGIS?

Moving labels manually using expression in QGIS?


I have many point shapefiles that are too close together. I need to label 4 lines of data for each point. I have written the expression that shows the 4 lines of data and now the labels are overposting on top of eachother. How can I manually move the labels to another location. I have used the data defined coordinate X,Y options to do this and told the program to use the Expression, please see the attached image, but it does not activate the move label button in the label toolbar. The label toolbar only activates if I choose 1 attribute at a time from a list.


In the screenshot you've provided, note the 'Data Defined' X and Y options.

First, create two new fields of FLOAT type (to store decimal places) and call them LABEL_X and LABEL_Y

Then go back to the data defined > X, Y options, set the fields to the LABEL_X and LABEL_Y you just created.

Now you can start an edit session and move the labels, and when you do, the LABEL_X and LABEL_Y fields get populated with the coordinates of the label.


It looks to me like you've set the data defined X/Y to an EXPRESSION. You instead need to set it to the FIELD - which should be listed directly in the data defined drop down. Then the move label tools will unlock when the layer is in edit mode.


In the screenshot you've provided, note the 'Data Defined' X and Y options.

First, create two new fields of FLOAT type (to store decimal places) and call them LABEL_X and LABEL_Y

Then go back to the data defined > X, Y options, set the fields to the LABEL_X and LABEL_Y you just created.

Now you can start an edit session and move the labels, and when you do, the LABEL_X and LABEL_Y fields get populated with the coordinates of the label.

This solution worked, it just took a little while for the system to recognize it, but once that move label button activated, I was extremely happy. Thank you!!! - Pie_Staff


Watch the video: Stack labels in QGIS. burdGIS