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

Neumann, Andreas a.neumann at carto.net
Thu Feb 18 05:59:27 PST 2016


Hi Andrew, 

Thank you for these useful custom expression functions.   

It would be quite useful to have the Python unichr() function available
in QGIS as an expression function under the "String" functions group. 

Thanks and greetings, 

Andreas 

On 2016-02-18 14:47, Andrew Harfoot wrote:

> 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 [1]
> 
> _______________________________________________
> 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

  

Links:
------
[1] http://www.geodata.soton.ac.uk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20160218/629c288a/attachment.html>


More information about the Qgis-user mailing list