Projections#

Introduction#

An important issue when creating a map of a region, is that it is impossible to create a representation of a sphere on a 2D plane without distorting the map. The transformation of a 3D object onto a flat surface can be done with the help of a projection. Over the centuries, cartographers and mathematicians have developed a multitude of different methods to project the earth onto a flat surface. However, it is never possible to correctly represent the world on a flat surface (see the video above). Every projection distorts either the length between two points, the angles between two lines (directions), or the size of an area. A projection can only correctly represent one of these three dimensions. This means, that depending on the projection method, your world map will not represent the size, angles, or distances correctly.

../../_images/en_examples_projections_IBIS.png

Fig. 26 Examples for Projections. Source:(http://ibis.colostate.edu/webcontent/NR505/2012_Projects/Team6/GISConcepts.html)#

Every projection has its use case. For example, the Mercator projection displays the angles between to points correctly. This was used extensively during the seafaring age without satellites, as ships could navigate to a destination by following a straight line on a map. For example, the Mercator projection displays road intersections correctly: a road that crosses another road at a right angle, will be displayed as such on a mercator projection. This is especially useful when navigating. The shape of an area remains correct, since the angles between each line stay true. However, if you increase the scale of the map, the size and distances get distorted dramatically (see figure below). Furthermore, the further away from the equator you get, the more distortion you get.

Note

The True Size of The mercator projection is famous for distorting the size of different countries. You can check the true size in comparison to different placements on the map on TheTrueSize.com website. A popular example is Greenland in comparison with Africa, which seem on the map to be about the same size, but in reality Africa is a lot bigger.

../../_images/en_greenland_africa.png

Fig. 27 Comparison Greenland - Africa. Source: The True Size of#

In the dropdown below, you can look at the size distortion of mercator yourself.

TheTrueSize.com - compare the effects of different projections

How to choose an appropriate projected coordinate system#

In GIS, we project the earth onto a flat coordinate system (hence the name coordinate reference system or CRS). It is crucial that you are aware that your data can be in one CRS and your QGIS project in another CRS. The data and the project should always be the same, or else you will get wrong results! The project CRS is displayed on the bottom right corner of the QGIS interface.
To change the CRS of your data and project, follow the steps explained below. The default CRS/EPSG code of every QGIS project is the World Geodetic System 84 (EPSG: 4326). This CRS is optimized for world maps. So not perfect for most applications, because we mostly use maps for small areas.

Tip

Choose the projection according to your area of interest. There are special CRS, that have been created to reduce the distortion and inaccuracy of projections for different regions on earth. You can find all the projections and their CRS codes on EPSG.io.

Look at the following images and pay attention how the different Coordinate Reference Systems change and distort the world map.

../../_images/world_mercator_tissots.png

Fig. 28 The Mercator Projection (EPSG:54004)#

Notice how the shape of the circle stays the same. Out of this, we can conclude that the angles stay the same. However, the circles get bigger the further away they are from the equator, and the distance between these circles change the further they they get from the equator. Therefore, we can conclude that the distances and sizes are being distorted with the mercator projection. The strength of the Mercator projection is that it conserves the angles between to lines. We can see this because the circles stay perfectly circular the further they are from the equator.

../../_images/WGS_84_tissots.png

Fig. 29 The World Geodetic System 1984 (EPSG:4326)#

The WGS 84 is a CRS which consists of an ellipsoid, that resembles the shape of the earth closely. Instead of metrical units of measurements, it uses angular degrees (latitude and longitude). The shape of the Tissot circles is undistorted near the equator, but becomes elongated on the East-West axis the further it gets away from the equator. Unlike the Mercator projection, there is no distortion on the in the North-South direction. As the circles become distorted, we can deduce that the this CRS distorts the angles.

../../_images/World_equidistant_cylindrical_tissots.png

Fig. 30 The World Equidistant Cylindrical Projection (EPSG:54002)#

The World Equidistant cylindrical CRS is equidistant (not distorting the length) along any meridian (cricles of longitude; North to South), and along the two standard parallels. The shape, scale and area distort the further they are away from the standard parallels.

This table shows an overview on which projections to use for which needed characteristic:

Characteristic

Mercator (cylindrical)

Lambert cylindrical

Albers conic

Shape

âś…

❌

âś…

Rotation

âś…

âś…

❌

Area

❌

âś…

âś…

Metric and Geographic Coordinate Reference Systems#

There are two different types of Coordinate Reference System: Geographic or Metric CRS.

  • A Geographic CRS is based on a three-dimensional, ellipsoidal model of the Earth. It uses angular measurements (latitude and longitude) to define locations on the Earth’s surface. The coordinates are usually expressed in degrees (e.g., 45°N, 120°W).

    • Advantages: Since it is based on the Earth’s curvature, it can be used to represent locationa anywhere on the earth. Most global datasets, GPS, and mapping systems use Geographic CRS making it highly compatible with various data sources. Locations can be specified accurately with angular measurements.

    • Disadvantage: Because it uses angular measurements, distances, areas, and shapes can be highly distorted. Since the distance between the circles of latitute and longitude change, the conversion of angles to meters is not constant

  • A metric CRS is a 2D representation of the earths surface. Although it is difficult to represent large areas of the globe on a 2D surface without surface, it is possible to create a 2D projection of a limited region with minimal distortion. The map units are typically metres or feet. It is created by projecting the earth onto a flat plane.

    • Advantages: Since it uses a flat plane, you can calculate distances, areas, and angles accurately.

    • Disadvantages: A given projected CRS is usually optimized for a particular region. Using it outside its intended area can lead to significant distortions in distance, area, and shape.

../../_images/Problem_distance_geographic_coords.png

Fig. 31 A geographic representation of the globe. The distance between the meridians converge towards the north and south pole.#

Caution

When processing geodata, QGIS always uses the units of measurements of the layer that you are processing.

Local and Global CRS#

../../_images/en_local_crs.png

Fig. 32 Local and global coordinate reference systems (CRS). Source: British Red Cross (BRC)#

As you can see, smaller regions look skewed and distorted in a global CRS For smaller areas local projections should be used, since they give a more accurate display. However, local projections heavily distort the map on a global level.

How to check and change the project coordinate reference system#

Now it’s your turn!

Understanding projections and coordinate reference systems is not easy. The next steps can be followed with any geodata layer in your QGIS project.

Note

One of the first things you do when starting a new QGIS project should be to check and adjust the CRS/EPSG code to the region or area you are working on. If you are working on a map showing the entire globe, global projection such as the mercator projection should be used. If you are working on a smaller region, such as a continent, a country, or even smaller regions, you should always use a local CRS, to avoid inaccuracies. If you don’t know which CRS to use, you can search for a suited one on EPSG.IO. Simply enter the name of your region and take a look at the available options. Make sure that the CRS you choose is in the correct unit of measurements (metres, feet, or degrees)

  1. Open a QGIS project

  2. In the very down right corner of QGIS you find the button EPSG. The number next to it is the EPSG Code currently used in the project. To see more information, or to change the CRS, click on the Current CRS-button .

  3. The window Project Properties will open. Here you can view all available CRS/EPSG-Code and their properties.

  4. To change the CRS/EPSG code, select the one you want to use and click Apply.

Video: How to check and change the CRS in your QGIS project

Project CRS and Layer CRS#

The coordinate reference system of your QGIS project determines how QGIS displays the information. However, layers and datasets have their own CRS. This can be seen in the metadata, or layer properties of the dataset. The layer CRS refers to the coordinate system of the features or items in the dataset. The same coordinates in two different coordinate reference systems do not refer to the same location on earth. This is because of the distortion of distance and area.

Note

The first thing you should do when loading a new layer or dataset into your QGIS project, should be to check the coordinate reference system of the dataset, and reproject it to the project CRS if necessary. This way, you ensure consistency in your project and that the geoobjects in your layer are at the right locations. Otherwise, you will create false results.

Changing the projection of a vector layer#

  1. Vector Tab -> Data Management Tools -> Reproject Layer

  2. Select target CRS/EPSG code.

  3. Save the new file by clicking on the three dots next to Reprojected, specify the file name and the location where you want to save the file.

  4. Click Run

Video: How to change the CRS of a vector a layer

Changing the projection of a raster layer#

  1. Raster Tab -> Projections -> Warp (Reproject)

  2. Select target CRS/EPSG-Code

  3. Select resampling method

  4. Save the new file by clicking on the three dots next to Reprojected, specify the file name and the location where you want to save the file.

  5. Click Run

Video: How to change the CRS of a raster layer

Further resources#

The website I Hate Coordinate Systems! offers a “a problem-based guide of common CRS issues, root causes, and solutions”. Check it out in case you have any issues with CRS.