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

Andrew Harfoot ajph at geodata.soton.ac.uk
Thu Feb 18 05:47:35 PST 2016


I have just posted a couple of unicode superscript and subscript 
functions to GIS Stackexchange:
http://gis.stackexchange.com/questions/181287

Cheers,

Andy


On 18/02/2016 13:15, Claas Leiner wrote:
> 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
>
>
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user


-- 
Andy Harfoot

GeoData Institute
University of Southampton
Southampton
SO17 1BJ

Tel:  +44 (0)23 8059 2719
Fax:  +44 (0)23 8059 2849

www.geodata.soton.ac.uk

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20160218/8d25579f/attachment.html>


More information about the Qgis-user mailing list