Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have to do 10 maps (for a start) with "style" -> "graduate" with quantile mode.

I need to format the label of the different ranges so that the legend looks comprehensible: Instead of having 1.0000 - 7.0000 I would like to have 1% - 7% without me typing.

In arcgis there is the possibility to format the labels. But I cannot seem to find anything similar in QGIS 1.8. Is it possible with some plugin or other QGIS version ?

share|improve this question
3  
Maybe you could do the typing once, save it as a style-template and reuse that on the other maps? – GR_ Nov 26 '12 at 10:21
    
Sounds great but I still would have to change the intervals, cause those change for each map – mirba Nov 26 '12 at 12:38
    
Are you trying to edit the labels on the map, or just in the legend? In case it's on the map, you can label with an expression.. Assuming you are trying to show say, a road slope percentage on a map, based on an attribute 'slope' which holds values in percentages, you can label with 'round("slope",0)||%' That way you can style based on 'quantile ranges', but display the actually data. If you're after info on how to automatically have the 'label' setting based on style classes altered - I'm clueless there. – Tim Couwelier Apr 28 '14 at 11:49
    
You could use @GR_ 's suggestion and for changing the intervals, just press "Classify" again for each map? – raphael Jan 9 '15 at 19:08

Three years late perhaps. But this can easily be done in QGIS 2.8, which is the current long term release, onwards.

You can set a legend format, "%1" and "%2" are used as place holders for the lower and upper limits of the range. Other characters can be inserted as needed.

There is also a option to limit the precision, so perhaps to 0 in your case.

enter image description here

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.