Georeferencing an image with QGIS
Raster and vector, what georeferencing is, and step by step how to georeference an image with the QGIS Georeferencer using control points (written for QGIS 2.18).

In this article I’ll explain how to georeference an image with QGIS.
What QGIS is
QGIS was once called Quantum GIS and is a desktop application, an open source Geographic Information System released under the GNU General Public License.
I copied these lines from the project’s official website, and they can also be put like this: QGIS is open source GIS software that runs on Linux, Unix, Mac OSX, Windows and Android.
I’d add that it works very well, is widely used around the world, is constantly updated and has a very active community behind it, where you can find information (videos, articles, tutorials and forum discussions) for any doubt, problem or curiosity.
What an image is
Sorry for the silly question!
It’s simple: an image is a photo, a drawing, a screenshot, a scan…
It’s better to say what a raster image is.
Raster means grid.
In computer graphics a raster (or bitmap) image is made of a grid of square dots, the pixels. Each pixel has a colour, and together they form the image.
The most important property of a raster image is its resolution, the number of pixels per unit of length. The higher it is, the better the image quality.
A resolution of 240 to 300 ppi (pixels per inch) is fine for printing; 72 ppi is fine for on-screen images.
If you zoom into a raster image, sooner or later you’ll see the pixel squares!
Well-known raster formats are: RAW, TIFF, JPEG, GIF, PNG, BMP, TGA
Besides raster graphics there’s vector graphics, which uses geometric shapes (lines, points, curves and polygons) to build the image. Shapes with colour or effect properties.
You can zoom into a vector image practically forever without losing detail, because its shapes are based on mathematical equations.
Vector images weigh less, in megabytes, than raster ones.
Well-known vector formats are: DWG, AI, EPS, SHP, PDF, CDR.
Below you can see the difference between overlapping raster and vector.
Zooming into the (PDF) file at 6000%, the raster image (an orthophoto) pixelates while the vector (contour lines) doesn’t.

Raster in mapping
When you design in CAD you’re working in vector, but if you put a photo under an elevation drawing you’re using a raster.
Likewise, if in a GIS you outline areas with shapefiles you’re using vectors, but if you put an orthophoto under a plan, that’s a raster.
From around 2000, Italian local authorities began vectorising territorial maps, which until then existed only as rasters.
Now many regional databases let you download map data in vector format: shapefile or DXF.
But you may still have to work with lots of raster images: the 1:25,000 regional technical map, a scan of a municipal master plan, historic aerial photos from the Istituto Geografico Militare archive, a Google Earth screenshot…
What georeferencing is
Georeferencing means assigning geographic coordinates to a graphic object.
With georeferencing you tell a map without coordinates where its place is on the Earth’s surface.
I wrote an article on georeferencing, which you can find here.
You can georeference both rasters and vectors.
If you receive a tacheometric survey (done with a total station) referred to a Cartesian system with its origin at 0;0, you may need to georeference it.
Likewise you might want to give coordinates to a map extract in a raster file.
Georeferencing an image in QGIS
Now I’ll show you how to georeference an image, a raster file, in QGIS.
As an example I’ll use the orthophoto of the Roman amphitheatre of Luni, an important archaeological site near where I live (Municipality of Luni – Province of La Spezia).
If you want to try the procedure with the same image I use, you can download it here.
Download and install QGIS
If you haven’t already, the first step is to download QGIS.
You can do it here.
At the time of writing, the latest stable version was 2.18.14 “Las Palmas”, but you’ll find a newer version when you read these lines, and some menus may have moved.
Installing it is the second step, and it’s fairly simple!
The raster Georeferencer
Once QGIS is running, look in the menu for “Raster – Georeferencer – Georeferencer”.
A new window will open.
From there go to “File – Open Raster” and load the image file you want to georeference.
Choose the reference system
A window will ask you to select a reference system.

The choice of projected reference system depends on the coordinates of the control points you’ll use for georeferencing.
To georeference you need to know the position of at least four points recognisable in the image.
The coordinates of these points point you to the reference system to select.
If you take the points from Google Earth, choose WGS84 – UTM 32N – EPSG 32632 (for western Italy; use the UTM zone of your area).
Once you’ve selected the reference system, the image will appear in the window.
Enter the ground control point coordinates
Now you need to enter in the image the coordinates of the known, recognisable points QGIS needs to georeference it.
Go to “Edit – Add Point” and select a point in the image whose coordinates you know.

QGIS asks you to enter the map coordinates of that point: easting (X) and northing (Y).

If you don’t know them, use Google Earth.
Navigate to the area you’re interested in and go to the point you marked on the image in QGIS.
Put a “pin” on it, copy the pin’s coordinates from Google Earth and paste them in their place in QGIS.

Careful! If you use Google Earth you must change the coordinates it shows so you get plane coordinates, not geographic ones.
Go to “Tools – Options – 3D View – Show Lat/Long” and select Universal Transverse Mercator (UTM).
This way Google will give you coordinates you can use for georeferencing.
Repeat this for the known points.
There must be at least four, but more is better.
The more precise the pairing “I locate the point precisely on the image + I give it accurate coordinates”, the more precise the final georeferencing.
When you’ve defined the control points you’ll have a summary table of what you entered in the image.
Transformation settings
Now you need to tell QGIS how you want it to apply the georeferencing to the image.
Go to “Settings – Transformation Settings”.

In 90% of cases you can select a 1st-order polynomial as the transformation type and “nearest neighbour” as the resampling method.
Other transformation types are for images that, besides being scaled, rotated and moved, also need to be warped.
Choose the name and destination of the georeferenced file and confirm your settings.
Georeference
Now everything is ready to start georeferencing with “File – Start Georeferencing”.
The process takes a few moments, and at the end you’ll find a new tif file in the folder you chose for the output.

If you import this file into QGIS, you’ll see its coordinates match those you assigned when georeferencing.
I hope this article on georeferencing an image with QGIS is useful in your work.
For any doubts or questions, get in touch however you like!
See you soon!
Paolo Corradeghini