Hi Uwe,
Don't know about subscript/superscript - you can try it. If it works, it would also be <sub> and <sup> since QGIS also uses HTML-like syntax for rich-text formatting. But it depends whether rich-text formatting was enabled for the labels of the map-grid or not. I believe there are different types of text objects in qt and it depends on what the programmer picked who implemented the map grid labeling. And of course you can use the modulus operator in combination with CASE WHEN END to have every-nth label with a different format. Andreas On 2016-02-11 12:35, Uwe Fischer wrote: > Hi Andreas, > > thank you so much! Believe it or not, for some reason I did not see the > „custom" option at the end of the formats list! Blind like a Maulwurf ... I'm > sure here I can find what is needed! Thanks again. > > Do you think there is a way to make use of subscript/superscript (hoffentlich > hab ich das nicht wieder übersehen!)? I' have not used my own funcions yet, > but I'd love to check it out. > > In ArcMap, it would be <sup>string</sup>. I'll search the iNet too, what I > find will be posted if interesting. > > Mit freundlichen Grüßen, > > Uwe Fischer > > VON: Neumann, Andreas [mailto:[email protected]] > GESENDET: Donnerstag, 11. Februar 2016 11:44 > AN: Uwe Fischer <[email protected]> > CC: [email protected] > BETREFF: Re: [Qgis-user] Print Composer: formatting UTM coordinates > > Hi Uwe, > > First - you can set the "Koordinatengenauigkeit" (coordinate accuracy or > something similar in english) to zero for UTM grid. > > QGIS is super flexible regarding formatting of map grids. You can use the > full-power of the QGIS expressions to format your grid. But it is your task > to do the Expression correctly. Just set the format to "user defined" and use > the "E" (Epsilon) button next to the format selection list. > > Specifically have a look at the round/format_number functions and string > manipulation. If that isn't good enough you can even do you own Python > functions). > > The only issues is that you need a relatively recent QGIS version >= 2.8 (I > think) for that. > > Hope this helps to get started. > > Andreas > > On 2016-02-11 11:27, Uwe Fischer wrote: > >> Hi list, >> >> does anybody know a way to get custom formatted UTM coordinates in a grid >> frame around the map? I have tested all the options in print composer and >> yet could not find what I am looking for. The problem is that UTM >> coordinates have 6 to 8 digits that don't change much along a large scale >> map (eg 1:10.000). That results in ugly long, bad readable numbers with >> changes only in their middle digits and with many trailing zeros at the >> right. >> >> It would be nice to have a number format like in older german topographic >> maps, that is: printing the leftmost digits („big values") just once at the >> map corners (or when they change), formatted as smaller superscript index. >> Printing the interesting middle digits with only one decimal at every tick >> mark (eg every 500 meters). Avoiding trailing zeroes. I hope that describes >> what I mean. >> >> Any suggestions? Thanks a lot! >> >> Regards, Uwe >> >> _______________________________________________ >> Qgis-user mailing list >> [email protected] >> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user >> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
_______________________________________________ Qgis-user mailing list [email protected] List info: http://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
