In properties > Label > placement > data defined > coordinates:

'x'... when I move the label manually, but what is '$x_at' for? Do they have a huge difference?

  • 2
    Have you actually tried reading the manual...? – Hornbydd Mar 29 '18 at 8:49

'X' Returns the x coordinate of a point geometry, or the x-coordinate of the centroid for a non-point geometry.

'$x_at (i)' Retrieves a x coordinate of the current feature's geometry where 'i' is the index of point of a line (indices start at 0; negative values apply from the last index), so $x_at(1) returns the x coordinate of the second vertice of the line

| 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.