[Qgis-user] custom string formatting for grid coordinate labels

Claas Leiner claas.leiner at gkg-kassel.de
Thu Feb 18 05:15:50 PST 2016


Hi,

With Unicode Characters is a good idea. As the code is implemented 
directly in a QGIS-Expression me remains a mystery.
I have searched for the mark on LibreOffice (insert special characters) 
and then copied using CTRL-C / CTRL-V in the expression.

With this expression:

Case
when @grid_axis = 'x' then (substr(@grid_number ,1,5) || '⁰⁰⁰ ᴱ')
when @grid_axis = 'y' then (substr(@grid_number ,1,5) || '⁰⁰⁰ ᴺ')
end

Do I get the coordinates marking shown in the attached image.

Best wishes

Claas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: koordinatenrand.png
Type: image/png
Size: 2361 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20160218/ab137a30/attachment.png>


More information about the Qgis-user mailing list