Difference between revisions of "Digitizing and Georeferencing in QGIS"
Winaaakabzaa (talk | contribs) |
Winaaakabzaa (talk | contribs) |
||
Line 16: | Line 16: | ||
* Under the Plugins menu, Click on Manage and Install Plugins. |
* Under the Plugins menu, Click on Manage and Install Plugins. |
||
+ | |||
* In the QGIS Plugin Manager Dialog box search for Georeferencer GDAL. |
* In the QGIS Plugin Manager Dialog box search for Georeferencer GDAL. |
||
+ | |||
* Ensure it is installed as shown below. Click Close. |
* Ensure it is installed as shown below. Click Close. |
||
Line 26: | Line 28: | ||
* Click the Add Raster Layer icon. |
* Click the Add Raster Layer icon. |
||
+ | |||
* On the dialog that appears, change the Files of Types to JPEG. |
* 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 |
* Browse to the location where we have the TIFF Image and open the image |
||
+ | |||
* Click on the image to select it the click Open. |
* 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. |
* 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. |
* On the Raster menu, click on the Georeferencer. |
||
+ | |||
* Click the Open Raster tool and select the raster file. |
* Click the Open Raster tool and select the raster file. |
||
Line 44: | Line 52: | ||
Zoom in to point A of the image. |
Zoom in to point A of the image. |
||
+ | |||
Click on the Add Points button |
Click on the Add Points button |
||
+ | |||
On the raster, click on the corner point, the Enter map coordinates dialog will appear |
On the raster, click on the corner point, the Enter map coordinates dialog will appear |
||
+ | |||
Click OK. |
Click OK. |
||
Line 53: | Line 64: | ||
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. |
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 on Start georeferencing button to create the new georeferenced raster. |
||
+ | |||
Click OK on the Info dialog if asked to set transformation type. |
Click OK on the Info dialog if asked to set transformation type. |
||
+ | |||
Fill the transformation settings dialog as shown in the figure that follows. |
Fill the transformation settings dialog as shown in the figure that follows. |
||
Line 71: | Line 85: | ||
Go to Layer ‣ Add Raster Layer. Locate the georeferenced image and click Open |
Go to Layer ‣ Add Raster Layer. Locate the georeferenced image and click Open |
||
+ | |||
Set the default Digitizing Options. Go to Settings ‣ Options… |
Set the default Digitizing Options. Go to Settings ‣ Options… |
||
Line 77: | Line 92: | ||
Select the Digitizing tab in the Options dialog. Set the Default snap mode to To vertex and segment. |
Select the Digitizing tab in the Options dialog. Set the Default snap mode to To vertex and segment. |
||
+ | |||
Click OK. |
Click OK. |
||
+ | |||
Click on Layer then create layer then new shapefile |
Click on Layer then create layer then new shapefile |
||
Line 85: | Line 102: | ||
Once the layer is loaded, click the Toggle Editing button to put the layer in editing mode. |
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. |
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. |
Once you have finished digitizing all the roads, click the Toggle Editing button. |
||
Revision as of 16:56, 8 January 2022
Contents
Introduction
This tutorial will demonstrate how to do GIS tasks i.e, geo-referencing and digitizing features using QGIS. Geo-referencing is the process where a digital image, an air-photo or a scanned topographic map, or even its picture is taken and spatial data or coordinates addled to it so that the image can be placed in the real world accurately using GIS software. It links known control points to unknown. On the other hand, 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, polylines or polygons. Both digitizing and georeferencing are important as they allow users to easily determine real-world information on an image, such as knowing coordinates and distances, and are always the first processes when analyzing a scanned or hardcopy map which can be dome using QGIS software.
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.
- Click on the Raster tab and launch the Georeferencer.
- 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.
Table showing the coordinates from google earth
Point Eastings Northings A 633042.00 4833849.00 B 634243.00 4833890.00 C 634135.00 4833174.00 D 633142.00 4833155.0
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.
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.
At this point the raster should be now Geo-referenced.
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…
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
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.