Wikipedia:Graphics Lab/Resources/QGIS/Create a topographic background
You already have a GIS file loaded in QGIS, we will now apply to it some nice colors, then output a PNG background for our area of interest and final map.
Step 4: Add some custom colors
- Main page : Wikipedia:Graphic Lab/Resources/QGis mapcolor files - for more colormap files
The topographic GIS data you downloaded is by default displayed using a monochromatic palette (mapcolors) going from white to black; however, you have the option of using other colors. You can either load an existing mapcolor file, edit an existing mapcolor file or create your own mapcolors. To do this, you will need to edit the layer's properties.
Please note that per the Wikipedia map conventions, you should use the colors provided for all topographical shading.
Loading mapcolors
For this, you will be using the Wikicarto_2.0.qml file you created earlier in this tutorial.
- Right click on the layer name in the Layers window and select Properties. The Layer Properties window will pop up.
- Under the Symbology tab, click Load Style ... at the bottom of the window.
- Find and select Wikicarto_2.0.qml, then hit Open.
- Click OK. Your map should now be in color!
-
The default layer properties window.
-
The final result.
Editing mapcolors

If you would like to edit already loaded mapcolors, simply go to the Colormap tab. There, you can add or delete entries by selecting them and clicking the appropriate buttons. You can also edit the Value, Color, and Label fields of any entry by simply double clicking on the field you wish to change. Click Apply to see the changes.
Creating mapcolors
If you would like to create your own colors from scratch—this is advised against for topographical maps, which should follow the map conventions—you can do so by following these steps on a layer which has not had colors loaded onto it:
- Access the Layer Properties.
- Under the Symbology tab, change Single band properties > Color map from Grayscale to Colormap. This will enable the options in the Colormap tab.
- In the Colormap tab, use the Add entry button to add colors. They will all have default values.
- Double click on the Value, Color, or Label fields of the entries to change them. For topography, the Value will be the altitude (ex.: 100 for 100m, 250 for 250m, and so on).
- Apply or OK to see the changes.
Saving mapcolors
You can save edited or created mapcolors as a style file by clicking Save Style... at the bottom of the Layer Properties window. This will allow you to apply those mapcolors to another map. If you would like to make colors—whether loaded or created—the default colors for the map, click Save As Default. This will allow you to keep editing or loading different colors while having the option to Restore Default Style if you don't like the changes you've made.
Existing color palettes
The QGis mapcolor files page already has some palettes you can use. Simply copy-paste the code into a text document, then save as PALETTENAME.qml and follow the steps above to load it into your map.
Step 5: Output your map, aka using the Print composer
This section is to redo (update/upgrade)
|
---|
![]() You are now working with QGis, your GIS data—namely, ETOPO1—and your customized palette. To output your first topographic background, don't use File > Save as Image, which is a simple screenshot. For better quality, use the Print composer. This step will walk you through outputting a map like the one you see on the right, including a grid and an inset that lets the viewer know where in the world this section is located.
Placing the main section for outputIn the print composer:
Adding a grid
Adding a localizer inset
|
Visual step-by-step
-
0. Starting point (QGIS, not Print composer): Data are ready an using the correct colormap.
-
01. File > New Print composer (Ctrl+P) > (you have a white page) > icon 'Add new map' > draw the diagonal of the area for your map
-
02. Choice the page size (mm) and quality (dpi) : higher means better quality.
-
03. Centering the map
-
04. Grid tab, add grid.
-
05. Grid tab, add annotations
-
06. Starting point for the localizator BUT white border in the tab : this is troublesome.
-
06. Starting point for the localizator without white in the maptab : Great !
-
07. icon 'Add new map' > draw the diagonal of the area for your map (same than 01)
-
08. Icon 'Add basic shape' > trace a shape > change to rectangle
-
09. Final look.
-
10. Save as png.
-
11. QGis Print composer's Final high quality output (you can zoom in !)
Links

The table above has links to various tutorials and resources which can help in the creation of Wikipedia maps from digital georeferenced data (GIS).