Georeferencing (Tutorial)

From AWF-Wiki
(Difference between revisions)
Jump to: navigation, search
Line 3: Line 3:
  
 
# First, you need an image, e.g. an aerial photograph, that lacks spatial information. For exercise purposes, you can generate one from the [[Course data]] by opening e.g. 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 warnin 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 {{button|text=OK}}.  
 
# First, you need an image, e.g. an aerial photograph, that lacks spatial information. For exercise purposes, you can generate one from the [[Course data]] by opening e.g. 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 warnin 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 {{button|text=OK}}.  
#* If you look at the coordinates under {{button|text=Coordinate}} below the [[canvas|QGIS GUI]] 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.
+
#* If you look at the coordinates under {{button|text=Coordinate}} below the [[QGIS GUI|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.
 
# Open {{mitem|text=Raster --> Georeferencer --> Georeferencer}}. If the georeferencer is not available, you'll have to activete it first. Just open {{mitem|text=Plugins --> Manage and install plugins}} and type {{typed|text=georeferencer}} into the search bar. Check the box {{button|text=Georeferencer GDAL}} and close the window. The plugin should now be available.
 
# Open {{mitem|text=Raster --> Georeferencer --> Georeferencer}}. If the georeferencer is not available, you'll have to activete it first. Just open {{mitem|text=Plugins --> Manage and install plugins}} and type {{typed|text=georeferencer}} into the search bar. Check the box {{button|text=Georeferencer GDAL}} and close the window. The plugin should now be available.
 
# In the georeferencer dialogue, click the {{button|text=Add raster}} icon. Browse for the image and click through the CRS-warning dialogue as described above.
 
# In the georeferencer dialogue, click the {{button|text=Add raster}} icon. Browse for the image and click through the CRS-warning dialogue as described above.

Revision as of 18:13, 8 December 2013

Construction.png sorry: 

This section is still under construction! This article was last modified on 12/8/2013. If you have comments please use the Discussion page or contribute to the article!

This article is part of the QGIS tutorial 2013/14.
In this article you learn how to georeference a raster image.
  1. First, you need an image, e.g. an aerial photograph, that lacks spatial information. For exercise purposes, you can generate one from the Course data by opening e.g. 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 warnin 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.
  2. Open Raster --> Georeferencer --> Georeferencer. If the georeferencer is not available, you'll have to activete it first. Just open Plugins --> Manage and install plugins and type georeferencer into the search bar. Check the box Georeferencer GDAL and close the window. The plugin should now be available.
  3. In the georeferencer dialogue, click the Add raster icon. Browse for the image and click through the CRS-warning dialogue as described above.
Personal tools
Namespaces

Variants
Actions
Navigation
Development
Toolbox
Print/export