Georeferencing (Tutorial)

From AWF-Wiki
Jump to: navigation, search
This article is part of the QGIS tutorial 2013/14.
In this article you learn how to georeference a raster image.


Step by step guide

Table A
GCP No. Easting Northing Height
01 566399.97 5712572.95 225.07
04 566491.76 5712396.51 232.50
05 566490.18 5712492.46 224.70
06 566489.27 5712570.51 222.00
08 566369.05 5712371.58 214.59
09 566370.13 5712508.13 217.87
  1. First, you need an image, e.g. an aerial photograph, without spatial information. For exercise purposes, you can generate one from the course data by opening the file aerial_utm_32_WGS84.tif from the geodata/raster/aerial/ folder with an image processing program (e.g. Irfanview under Windows). Simply save the file under a different name, e.g. image_raw.tif and open it in QGIS. QGIS will issue a warning that the layer lacks spatial information, prompting you to select a coordinate system. You can pick one ad libitum, e.g. WGS84 (EPSG:4326) or Gauss-Kruger zone 3 (EPSG:31467), and confirm with OK.
    • If you look at the coordinates under Coordinate below the canvas you will recognize that the coordinates are far off the real position of the map. The top left corner of the image is located at the coordinate systems point of origin (thus 0,0), which you can see by simply positioning the mouse cursor at the corner.
  1. In the georeferencer dialogue, click the Add raster QGIS 2.0 georef addrast.png icon. Browse for the image and click through the CRS-warning dialogue as described above.
  2. Now you have to add some ground control points (GCP's)!
    1. Find the ground control points displayed in the figures below (figures B and C). The points are located at manholes, so that they can be relocated with a certain precision.
    2. Decide for one arbitrary point to start with, and zoom in on it using the zoom tool QGIS 2.0 georef zoom.png.
    3. When you have located the right spot, add a GCP using the Add point tool QGIS 2.0 georef addpoint.png.
    4. A menu will pop up (figure D), prompting you for the GCP coordinates. Simply copy and paste the coordinates from table A.
  3. Repeat this routine for all points. When you're done, open the Settings --> Transformation settings menu and configure the settings as follows:
    • As Transformation type select Helmert.
    • Enter name and directory for the output file, e.g. <my_geodata_folder>/aerial_georef.tif
    • As Target SRS (Spatial reference system), choose the WGS84/UTM zone 32N (EPSG: 32632), as this is the coordinate system used for GPS data.
    • Finally, click the Start georeferencing button QGIS 2.0 georef run.png.
  4. Add the resulting layer to the canvas and zoom in on it QGIS 2.0 zoomtolayer.png.
  5. You can check the quality of the georeferenciation by comparing the georeferenced map to the actual aerial_utm_32_WGS84.tif you loaded in the beginning. You can also load the topographic map topo_utm32_WGS84.tif from the geodata/raster/thematic/ directory as a reference (figure E).
  6. To reduce the overall transformation error, you may experiment with different transformation algorithms, which can be selected in the Settings --> Transformation settings Transformation type menu (see above).

Figures

Figure A: QGIS 2.0 with open georeferencing dialogue.
Figure B: Ground control points (GCP's) for georeferencing.
Figure C: Ground control points (GCP's) for georeferencing (zoomed in).
Figure D: Coordinate prompt after adding a groud control point in the georeferencing menu.
Figure E: Georeferenced aerial photograph with underlying topographic map.
Personal tools
Namespaces

Variants
Actions
Navigation
Development
Toolbox
Print/export