../../_images/logo_qgis.png ../../_images/OSGeo_project.png

QGIS Quickstart

QGIS is a user-friendly Desktop GIS client which lets you visualize, manage, edit, analyse data and compose printable maps.

Start QGIS

  1. Open the ‘Desktop GIS’ folder.

  2. Double click on the ‘QGIS’ icon.

You will see QGIS launch with an empty project. The various parts of the QGIS Interface are listed below.

Open a QGIS project
  • [1] Menu bar: Access to various QGIS features using a standard hierarchical menu.

  • [2] Toolbars: For interaction with the map, layers, attributes and selections.

  • [3] Browser Panel: A spatial file browser allowing drag and drop content into the map frame.

  • [4] Layer Panel: Controls the map layers, their order, and visibility.

  • [5] Status Bar: General information about the map and access to a universal search bar.

Create a project

To create a new project, choose Project ‣ New.

QGIS new project

Let’s start by adding a vector layer to the map. Layers can be added to QGIS using the browser panel, located on the left of the screen.

  1. Go the browser panel on the left of the screen.

  2. Navigate the folder tree to ‘home/data/natural_earth2’.

  3. Select ‘ne_10m_admin_0_countries.shp’.

  4. Drag the layer from the browser panel and drop it in the map frame.

QGIS browser add vector layer

Once the layer has been dragged onto the map frame, you will see a layer showing countries.

QGIS vector layer

Now let’s try adding a raster layer to the project.

  1. Go the browser panel on the left of the screen.

  2. Navigate the folder tree to ‘home/data/natural_earth2’.

  3. Select ‘HYP_50M_SR_W.tif’.

  4. Drag the layer from the browser panel and drop it in the map frame.

QGIS browser add raster layer

Once the layer has been dragged onto the map frame, you will see a raster layer showing land cover and bathymetry.

QGIS raster layer

Now that we have added some content to our project we can save this project so that we can come back to it at a later time.

  1. Choose Project ‣ Save.

    QGIS save
  2. Make the location to save the project ‘/home/user/desktop’.

  3. Call the project ‘My QGIS project’.

    QGIS project location
  4. Click ‘Save’.

You will know the project has been saved because there will be a project file on the desktop called ‘My QGIS project’ and the top of your project document will no longer read as ‘untitled’ but instead will read as ‘My QGIS project’.

QGIS saved project

Open an existing project

A QGIS project saves layers, styles, map extents and settings for use at a later time. This information is stored as a QGIS project file and has an extension of ‘.qgs’ or ‘.qgz’, with ‘.qgz’ being the default file format in QGIS going into the future.

Let’s open an existing QGIS project and have a look at how it works.

  1. Open QGIS. Note that when QGIS is opened you will be presented with a list of recent projects to chose from. This is a convenient way to open a project you have used recently.

  2. Choose Project ‣ Open.

  3. Navigate to ‘/home/user/qgis-example’.

  4. Select the project ‘QGIS-NaturalEarth-Example.qgs’.

  5. Click ‘Open’.

QGIS Open project

This will open a QGIS project with a number of Natural Earth datasets, as shown below. This project contains a number of layers in the layers panel and is displaying the spatial content in the map frame.

QGIS Open project result

Layers can be turned on or off by clicking the checkbox next to the layer name in the layers panel. When a layer is turned on in the layer panel, the map frame will be updated to display the layer. A close up of the layer panel is shown below.

QGIS layer panel

Let’s interact with the layer panel and change the visibility of some map layers.

  1. Click the checkbox next to the ‘ne_10m_populated_places’ layer to turn it on.

  2. Click the checkbox next to the ‘Water’ layer to turn the layer off.

Notice how the map frame has been updated to reflect the changes in the layer list. We can now see the ‘ne_10m_populated_places’ layer as points, but can no longer see the rivers and lakes which are within the ‘Waters’ layer.

QGIS result of layer visibility changes

In addition to controlling layer visibility, we can also change the order in which layers are drawn in the layer panel. This is done by selecting a layer in the layer panel and dragging it up or down the list. The order that the layers appear in the layer list is the order which they will draw on in the map frame.

  1. Left-Click on the layer ‘HYP_50M_SR_W’.

  2. While holding the mouse button down drag the layer to the top of the list.

Notice how the raster layer is now on top of all other layers in the layer panel. This now renders the raster layer on top of all other layers in the map frame.

QGIS modified the order of layers

Try moving the ‘HYP_50M_SR_W’ layer to the bottom of the layer list. This would be a more appropriate position for a map layer like this.

Style your layers

Layers can be styled in QGIS using the style dock. The style dock is not visible by default, but easily accessible via a button at the top of the layer panel as shown below.

QGIS style dock

The above button acts as a toggle so the style dock can be easily hidden from view by clicking the same button again. When the style dock is enabled it will appear on the right-hand side of the screen ready to style the active layer highlighted in the layer panel.

With the style dock open, we can modify the appearance of the layer shown at the top of the style dock.

QGIS style dock layer

With the style dock now open, we can modify the colour and the width of the lines in the ‘ne_10m_rivers_lakes_centrelines’ layer. Let’s try modifying the colour first.

  1. Click on the ‘Color’ swatch shown below. This will launch a colour palette allowing you to choose a different colour.

    QGIS style dock color
  2. In the ‘Select Color’ palette, move the cross-hair to your preferred colour.

    QGIS color palette
  3. Then click the back arrow to return to the symbol render preview.

    QGIS style return
  4. The symbol preview will be updated with the new colour, and so will the layer in the map frame.

    QGIS style result

In the style dock, we can also modify the size of the map features. To modify the thickness of the lines follow these steps:

  1. Make sure that the ‘ne_10m_rivers_lakes_centrelines’ is selected at the top of the style panel.

  2. In the style panel enter the value ‘0.5’ in the ‘width’ input.

    QGIS style width

Notice the line in the symbol preview increase in width, and so do the lines that are in the map frame.

Things to try

What next?

To learn more about QGIS, a good starting point is the Documentation page on the QGIS homepage and A Gentle Introduction to GIS eBook.