Skip to content

QGIS tips & Tricks

Robin edited this page Dec 12, 2025 · 1 revision

Convert LineString to polygons (e.g. with roads)

  1. In the Processing Toolbox, open Reproject layer
  2. In “Target CRS”, select Project CRS: EPSG:3006 - SWEREF99 TM and click Run
  3. Select the newly created layer.
  4. In the Processing Toolbox, open Buffer and add Distance 2,5 meter (since it adds buffer on both sides it will equal 5m).

Prepare roads correctly for export

Roads are supported as LineString in the placement tool. However, it looks nicer on the map if it is a single MultiLineString. So, if it consists of multiple LineStrings, convert them to a single MultiLineString

  1. Select the layer
  2. In the Processing Toolbox, open Promote to multipart and Run. This creates a new layer.
  3. With the newly created layer selected.
  4. In the toolbar, click Toggle Editingto enable it, Select All Features and finally Merge Selected Features.

Make XYZ basemap tiles from a big image (e.g. aftermath map)

  1. Open QGIS and go to Layer - Add Layer- Add Raster Layer. Add the big image.
  2. In Processing Toolbox, open `Generate XYZ tiles (Directory)
    1. Settings:
      Min zoom: 15
      Max zoom: 19
      (the rest default settings?)

Set the correct type data before export

Before exporting, make sure the feature(s) have the correct attributes (see picture) open qgis layer attribute table

Supported types and info (Work in progress, probably missing some types)

  1. area - the area at BL’s disposal
  2. oktocamp - normally the area within 50m of a fireroad
    (why is this needed when we have “area”?)
  3. fireroad - Wider roads for vechicles to drive on and shall not be blocked.
  4. minorroad - also known as walking paths
  5. publicplease - A note to use put public offerings here. We can reuse fireroad geojson and just add a wider buffer in the placement tool code.
  6. container
  7. naturereserve
  8. propertyborder
  9. friends
  10. forbidden
  11. toilet
  12. bridge
  13. parking
  14. slope
  15. plaza
  16. quarter
  17. neighbourhood
  18. hiddenforbidden
  19. redsoundzone
  20. orangesoundzone
  21. yellowsoundzone
  22. greensoundszone
  23. bluesoundzone
  24. closetosanctuary