[Qgis-user] Print Composer: formatting UTM coordinates

Uwe Fischer gisfisch at t-online.de
Thu Feb 11 03:35:16 PST 2016


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:a.neumann at carto.net] 
Gesendet: Donnerstag, 11. Februar 2016 11:44
An: Uwe Fischer <gisfisch at t-online.de>
Cc: Qgis-user at lists.osgeo.org
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
Qgis-user at lists.osgeo.org <mailto: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

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20160211/9cec0806/attachment.html>


More information about the Qgis-user mailing list