4

I am using the scale bar of the QGIS composer (ver 1.8) and I don't understand how the whole thing works.

enter image description here

Where can I set the units properly? The layers have idential CRS (WGS84), the settings for map tools is in meters.

I have tried to get it correctly by changing segment size and map units per bar unit, but it doesn't work. However, I have to admit that I don't understand what these two fields actually mean.

3 Answers 3

9

WGS84 uses degrees as units. It is not possible to add a meaningful scalebar with meters/feet to a map which is projected to WGS84. Choose a different CRS (with units in meters/feet) and the scalebar should make more sense. If you want to stick with WGS84, just get rid of the scalebar. What would it be useful for anyway?

This thread discusses CRS for the northern Atlantic What's the best projection for rasterization of random latitude and longitude data in the northern Atlantic?

5
  • Ah, okay, I didn't know that. Thanks! Can you suggest any good CRS? And, maybe a stupid question, can I just change the CRS like that, won't it mess around with my maps? But you are right, scale bars are not too useful... feels incomplete without one, though.
    – Kristina
    Aug 29, 2013 at 16:23
  • @Kristina Do you want to show the whole world or just the extent which we can see in the map you posted in the question?
    – underdark
    Aug 29, 2013 at 16:56
  • Just the extent I depicted, Northeast Atlantic and bits of Europe.
    – Kristina
    Aug 29, 2013 at 17:00
  • In 1.8, if you have google print as background to the map of the composer, the canvas crs must be set to google mercator, which creates the same problem of units as degress as @underdark notes. Otherwise the background will be offset from the layers. For background of Bing and Openlayers you can use the PopularMercator/WGS crs which has less noticeable problem of the offset.
    – Willy
    Aug 30, 2013 at 4:30
  • The problem in the composer with offset layers may not be apparent until you output the pdf.
    – Willy
    Aug 30, 2013 at 4:36
1

To print a map from composer with meaningful units, the canvas (main window) crs ought to be set to a UTM crs, for instance GDA94/MGA55 EPSG:28355 which is metres. Most static layers will plot correctly with this, regardless of their crs.

When you use layers which are made of tiles (web sourced for intance) then there is a problem and you have to set the canvas crs to something like what the tiles are made in, see comment.

If you make your layer (reproject or save as) and your canvas crs both in a UTM crs, you can have confidence your outputs will be accurate, both the scale bar in the canvas and in the composer and the output pdf.

0

You technically can however, it requires a detailed workaround. First of all, you should take a look at the following properties:

  1. Units - where you can literally play with the "Label unit multiplier" section.
  2. Segments - where you can define the number of segments in your scalebar, and what is most important - their width.
  3. Position and size - make sure, that the width of your scale matches the size you need. Obviously, it includes also the text above the scalebar.

The most essential thing is to make all these properties match together. It requires some manual work with respect also to the print paper geometry. Since you are sure, that your scalebar is right, then it can be used.

enter image description here

And the last thing - I would advise to lock your map first before you start to doing it

https://www.youtube.com/watch?v=r2EOUH5wsMQ&ab_channel=burdGIS

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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