[Qgis-user] custom string formatting for grid coordinate labels
Andrew Harfoot
ajph at geodata.soton.ac.uk
Wed Feb 17 01:42:58 PST 2016
Hi Uwe,
If you can't use formatting tags, then possibly Unicode is your friend
here - have a look at characters U1D31 and U1D3A - superscript E and N
respectively. Using these should allow you to generate labels like this:
0234ᴱ or 345389ᴺ
Cheers,
Andy
On 16/02/2016 18:48, Nyall Dawson wrote:
>
>
> On 17 Feb 2016 2:20 AM, "Uwe Fischer" <gisfisch at t-online.de
> <mailto:gisfisch at t-online.de>> wrote:
> >
> > Hello List, hello Nyall,
> >
> >
> >
> > I have a question concerning the grid coordinate labels for map
> frames in print composer. If you set the label format to „custom“, you
> get to „Expression based annotation“ box where you can build
> expressions for formatting, e.g. concat(left(@grid_number,3) ,
> '<sup>E'). That works fine in the editor and the footnote preview
> shows exactly the desired result (E as an above positioned little
> index). But, in the map composer canvas, the format string is rendered
> as text, that means <sup>E shows up as a text string there.
> >
> >
> >
> > Is there a way to apply the format rule (which seems to work)
> correctly to the map composer?
>
> Not currently - there's no support for formatting in the coordinate text.
>
> Nyall
>
> >
> >
> >
> > Regards and thanks a lot,
> >
> >
> >
> > Uwe
> >
> >
>
>
>
> _______________________________________________
> 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/20160217/30ee4532/attachment.html>
More information about the Qgis-user
mailing list