6

I am trying to recreate a scalebar thats part of a norwegian standard (NS3039) in QGIS.

QGIS makes these half-segments for negative values (highlighted in red in the picture below 1, but I want these half-segments for the first positive segment, as shown in the picture at the bottom 2

The original from QGIS:

original qgis scalebar

The target scalebar:

target scalebar

Any idea how I can create this in the Print Layout in QGIS?

5
  • Do you want this scalebar to be used in the composer, or on the map canvas as "decoration".
    – Erik
    Oct 15, 2018 at 8:19
  • In the Print Layout/print composer to show on the finished map. I edited my question to clearify this Oct 15, 2018 at 10:43
  • 1
    Possible workaround could be to use the scalebar provided by QGis, but add the numbers manually.
    – Erik
    Oct 15, 2018 at 11:10
  • 3
    Or you could put a second scalebar (25m increments, one segment, no labels) on top of the first scalebar.
    – csk
    Oct 15, 2018 at 18:05
  • Might be worth making a feature request issues.qgis.org/projects/qgis/issues
    – csk
    Oct 17, 2018 at 17:20

2 Answers 2

5

A very ugly solution based on csk comment about a second scale bar, but it achieves the goal and it could be no harmful in a good template.

1.- First create a scale bar with the desired lenght on the right and shape (in this case a double box). In this case lenght 5 and unit 100 m enter image description here

  1. Create a second bar, but now with length two on the right and half of the unit of the first one, in the example 50 m. The trick is to invert the colors of fill and secondary, and change front to 100% transparent enter image description here

  2. Finally, the second scale bar has to be placed on top of the first one. This is easy done with the snap that operates in the printer composer, but if not the position and size can provide full control. 3

1
  • Thanks. I'll do it like this. It looks correct at least Oct 17, 2018 at 10:34
-2

You need to set the Left segments to 0, as seen in this screen shot.

enter image description here

4
  • You are not answering the questions about the half-segments on the possitive side of the scale bar
    – Marco
    Oct 15, 2018 at 8:38
  • not sure you can do that
    – Ian Turton
    Oct 15, 2018 at 8:42
  • I agree, I do not see it is achievable with the 2.18 at least
    – Marco
    Oct 15, 2018 at 8:43
  • Left=0 only removes these half-segments and doesnt push them to the positive side. And I am using the latests QGIS 3, but I haven't seen any options there either Oct 15, 2018 at 9:19

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.