Difference between revisions of "Digitizing and Georeferencing in QGIS"

From CUOSGwiki
Jump to navigationJump to search
Line 2: Line 2:
   
 
This tutorial will demonstrate georeferencing and digitizing features in QGIS, using imagery downloaded from Google Earth Pro. Georeferencing is the process of taking a digital image, air-photo, or scanned topographic map, and using spatial data or coordinates to locate the image in the real world using GIS software (USGS, 2023). Essentially, georeferencing ties an image to the coordinate system used on earth, allowing for digital map analysis (point-and-click for coordinates, calculate area and distance, etc) (USGS, 2023). It links known reference points to the earth in order to georeference the entire image. Digitization is a process where geographic data in a hardcopy or a scanned image form is converted into vector data by tracing the features as either points, lines, or polygons, to convert georeferenced data to a digital format, such as a shapefile (ArcGIS Developers, 2023). Both digitizing and georeferencing are useful skills to learn, as they allow users to easily determine real-world spatial information from an image, such as knowing coordinates and distances. They are also always the first processes when analyzing a scanned or hardcopy map, so they are good basic skills to master.
 
This tutorial will demonstrate georeferencing and digitizing features in QGIS, using imagery downloaded from Google Earth Pro. Georeferencing is the process of taking a digital image, air-photo, or scanned topographic map, and using spatial data or coordinates to locate the image in the real world using GIS software (USGS, 2023). Essentially, georeferencing ties an image to the coordinate system used on earth, allowing for digital map analysis (point-and-click for coordinates, calculate area and distance, etc) (USGS, 2023). It links known reference points to the earth in order to georeference the entire image. Digitization is a process where geographic data in a hardcopy or a scanned image form is converted into vector data by tracing the features as either points, lines, or polygons, to convert georeferenced data to a digital format, such as a shapefile (ArcGIS Developers, 2023). Both digitizing and georeferencing are useful skills to learn, as they allow users to easily determine real-world spatial information from an image, such as knowing coordinates and distances. They are also always the first processes when analyzing a scanned or hardcopy map, so they are good basic skills to master.
  +
  +
The first section of this tutorial will focus on georeferencing, starting by downloading Google Earth imagery and reference points, then bringing these into QGIS and starting the georeferencing tool, tying reference points to the image, and finally producing the finished georeferenced file. The second section of the tutorial will use the georeferenced image from part 1 to explain basic digitizing skills, creating point, line, and polygon shapefiles from the image.
   
 
== Software ==
 
== Software ==

Revision as of 09:03, 20 September 2023

Introduction

This tutorial will demonstrate georeferencing and digitizing features in QGIS, using imagery downloaded from Google Earth Pro. Georeferencing is the process of taking a digital image, air-photo, or scanned topographic map, and using spatial data or coordinates to locate the image in the real world using GIS software (USGS, 2023). Essentially, georeferencing ties an image to the coordinate system used on earth, allowing for digital map analysis (point-and-click for coordinates, calculate area and distance, etc) (USGS, 2023). It links known reference points to the earth in order to georeference the entire image. Digitization is a process where geographic data in a hardcopy or a scanned image form is converted into vector data by tracing the features as either points, lines, or polygons, to convert georeferenced data to a digital format, such as a shapefile (ArcGIS Developers, 2023). Both digitizing and georeferencing are useful skills to learn, as they allow users to easily determine real-world spatial information from an image, such as knowing coordinates and distances. They are also always the first processes when analyzing a scanned or hardcopy map, so they are good basic skills to master.

The first section of this tutorial will focus on georeferencing, starting by downloading Google Earth imagery and reference points, then bringing these into QGIS and starting the georeferencing tool, tying reference points to the image, and finally producing the finished georeferenced file. The second section of the tutorial will use the georeferenced image from part 1 to explain basic digitizing skills, creating point, line, and polygon shapefiles from the image.

Software

QGIS plays an important role in georefening. Quantum GIS (QGIS) is an Open Source GIS system that allows users to interact with geospatial programs free of charge. It supports various datasets such as vector, raster, several Plug-ins, and database formats and lets the user browse and create map data on their computer.

Data

The first step is to locate a suitable historical image to georeference. You can receive these from a variety of places. I chose a place in Canada for the purpose of this exercise. The most important aspect in georeferencing is acquisition of raster data having control points. Google Earth image to download an image which was then used to showcase the process of georeferencing. When collecting data in the field, either with the use of a map or a GPS, it is critical to capture describe locality information as an independent validation of a georeference.

Tutorial for Georeferencing with QGIS

With QGIS software open, the first step is to check whether the Georeferencer plugin is installed:

  • Under the Plugins menu, Click on Manage and Install Plugins.
  • In the QGIS Plugin Manager Dialog box search for Georeferencer GDAL.
  • Ensure it is installed as shown below. Click Close.
Picture2.png
  • Click on the Raster tab and launch the Georeferencer.
Picture3.png
  • Click the Add Raster Layer icon.
  • On the dialog that appears, change the Files of Types to JPEG.
  • Browse to the location where we have the TIFF Image and open the image
  • Click on the image to select it the click Open.
  • In case the Coordinate Reference System Selector dialog opens, ensure the coordinate is set to ESPG 26917 under Geographic Coordinate System then click OK.
  • On the Raster menu, click on the Georeferencer.
  • Click the Open Raster tool and select the raster file.
Picture4.png

Table showing the coordinates from google earth

Screen Shot 2022-01-08 at 4.59.32 PM.png


  • Zoom in to point A of the image.
  • Click on the Add Points button
  • On the raster, click on the corner point, the Enter map coordinates dialog will appear
  • Click OK.
Picture5.png


  • Key-in the corner coordinates (GCPs) and repeat for all the other three corners. You can decide to save the GCPs, load GCPs, delete point or remove GCP point.
  • Click on Start georeferencing button to create the new georeferenced raster.
  • Click OK on the Info dialog if asked to set transformation type.
  • Fill the transformation settings dialog as shown in the figure that follows.
Picture6.png


  • At this point the raster should be now Geo-referenced.
Picture7.png

Digitizing tool

Digitizing is one of the most frequent duties assigned to a GIS Specialist. Often, a significant portion of GIS effort is spent digitizing raster data in order to create vector layers for analysis. QGIS includes robust on-screen digitizing and editing features, which we shall investigate in this course.

Procedure

  • Go to Layer ‣ Add Raster Layer. Locate the georeferenced image and click Open
  • Set the default Digitizing Options. Go to Settings ‣ Options…
Picture8.png


  • Select the Digitizing tab in the Options dialog. Set the Default snap mode to To vertex and segment.
  • Click OK.
  • Click on Layer then create layer then new shapefile
Picture9.png
Picture10.png
  • Once the layer is loaded, click the Toggle Editing button to put the layer in editing mode.
  • Click the Add feature button. Click on the map canvas to add a new vertex. Add new vertices along the road feature. Once you have digitized a road segment, right-click to end the feature.
  • Once you have finished digitizing all the roads, click the Toggle Editing button.
Picture11.png

References

ArcGIS Developers. (2023). Geo-Referencing and Digitization of Scanned Maps. ArcGIS. https://developers.arcgis.com/python/guide/geo-referencing-and-digitization-of-scanned-maps/

USGS. (2023). What does ‘georeferenced’ mean?. USGS. https://www.usgs.gov/faqs/what-does-georeferenced-mean#:~:text=Georeferencing%20means%20that%20the%20internal,ground%20system%20of%20geographic%20coordinates