TransWikia.com

Rounding numbers in Raster Legend in QGIS?

Geographic Information Systems Asked by Thomas Ljungberg on August 4, 2021

Is it possible to have the numbers in the raster legend automatically rounded off?

In the example below I’d like the labels to be 8, 29, 51 and so on.

I know I can manually edit the labels, but is it really necessary to do that every time I make a map?

example

2 Answers

As of QGIS 3.16, you can do this directly via the Label precision option under Symbology.

Just set the precision to 0.

You can also use negative numbers to round to powers of 10.

enter image description here

Correct answer by Tom Brennan on August 4, 2021

If you have edited them manually, you can copy the style by right clicking on the layer name in your layers panel.

If you added another raster, you can paste the style by also right clicking on the layer name.

enter image description here

If it isn't necessary to have the same intervals in multiple layers, but just integer values in your layer, you can select "Discrete" as Interpolation and "Quantile" as Mode, and then click on the Classify button.

Answered by Michel Stuyts on August 4, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP