Difference between revisions of "Georeferencing Raster Imagery in SAGA GIS"

From CUOSGwiki
Jump to navigationJump to search
 
(120 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
==Introduction==
 
==Introduction==
 
===Geo-referencing===
 
===Geo-referencing===
In the last few decades the extensive use of GPS navigation systems through the widespread use of the Internet in mobile phones, and thus the numerous multimedia applications that make use of geolocation technologies, has increased the use of maps exponentially, and with it cartographic document management (Jiménez-Pelayo; Bonachera-Cano, 2001; Beltrán-López, 2012). All these technologies and the primary uses for which they were designed have allowed us to both review and revitalise the way of presenting, disseminating and making the cartographic and photographic documentation stored and digitised in archives, libraries, map libraries, museums, geographic institutes and other institutions publicly accessible (Cascón-Katchadourian; Ruiz-Rodríguez, 2016). Alongside many other possible uses, georeferencing technologies applied to cartographic sources allow us to convert the image from the digitalisation of old maps (Crespo-Sanz; Fernández-Wyttenbach, 2011) into an interactive layer that can be displayed in a Geographic Information System (GIS) through a web browser or a mobile app (Maptiler, 2017). This is possible by assigning geographic coordinates to an element that did not have them, and embedding it in related applications of widespread universal use such as Google Maps.
 
   
  +
[[File:Georeferencing-concept2.gif|thumb|frame|center|Figure 1: Geo-referencing]]
Geo-location technologies applied to old photographic collections allow us to discover where the images were taken, find out what is shown in many of them and, above all, facilitate the user to search through.
 
   
Much of the data in the world can be geo-referenced, which indicates the importance of geospatial big data handling. Geospatial data describe objects and things with relation to geographic space, often with location coordinates in 3 a spatial referencing system. Geospatial data are traditionally collected using ground surveying, photogrammetry and remote sensing, and more recently through laser scanning, mobile mapping, geo-located sensors, geo-tagged web contents, volunteer geographic information (VGI), global navigation satellite system (GNSS) tracking and so on. Raster data produced by scanning aerial photographs, toposheets, or print maps normally do not contain any spatial reference information. Other times, the image does not properly align with other data, and requires transformation in order to be used in conjunction with existing data. '''Georeferencing''' rasters is a means of accomplishing both courses of action, and is a common and important task in the field of geospatial analysis (especially when working with historical imagery or maps). ESRI defines Georeferencing as:
 
<blockquote>Aligning geographic data to a known coordinate system so it can be viewed, queried, and analyzed with other geographic data. Georeferencing may involve shifting, rotating, scaling, skewing, and in some cases warping, rubber sheeting, or orthorectifying the data. [https://support.esri.com/en/other-resources/gis-dictionary/term/georeferencing citation]</blockquote>
 
This tutorial contains an introduction to the process of georeferencing imagery in the SAGA GIS software, as well as information on the fundamentals of the georeferencing process.
 
   
  +
Much of the raster data in the world can be geo-referenced, which indicates the importance of geospatial big data handling. [https://arxiv.org/ftp/arxiv/papers/1511/1511.03010.pdf Source] These datasets are traditionally collected using ground surveying, photogrammetry, and remote sensing, and more recently through laser scanning, mobile mapping, geo-located sensors, geo-tagged web contents, volunteer geographic information (VGI), global navigation satellite system (GNSS) tracking and so on. Raster data produced by scanning aerial photographs, toposheets, or print maps normally do not contain any spatial reference information as they are made up of pixels. In addition, satellite images may inherit some un-systematic errors making its location shifted to the original XY-location. [https://www.slideshare.net/Atiqa_khan/lec6intro-to-georeferencing Source] Georeferencing rasters is a common and important task in the field of geospatial analysis, especially when working with historical imagery or maps. The process usually consists of aligning geographic data to a known coordinate system so it can be viewed, queried and analyzed with other geographic data. For instance, geo-referencing is useful to calculate the exact area or extent of a raster dataset. Georeferencing may involve shifting, rotating, scaling, skewing, and in some cases warping, rubber sheeting, or ortho-rectifying the data. [https://support.esri.com/en/other-resources/gis-dictionary/term/georeferencing Source] The most visible effect of georeferencing is that display software can show ground coordinates (such as latitude/longitude or UTM coordinates) and also measure ground distances and areas.
Georeferencing options are complex; what works for architectural workflows may not be suitable for GIS workflows. Different regions of the Earth have different geographical requirements.
 
Since the earth is not a perfect sphere, it is not a straightforward process to project a map onto the earth’s surface, or transfer an object onto the surface. Projections are mathematical formulas that translate the shape of the earth onto a 2D page. Because the translation loses data, different projections represent the longitudinal and latitudinal coordinates of the non-uniform sphere on the page.
 
When georeferencing is enabled, each design layer stores information that describes the mapping of that layer’s Cartesian coordinate system onto a geographic coordinate system of latitude and longitude. The origin offset determines how the projection relates to the internal origin (the center of the drawing in the Vectorworks file); this offset can be turned off at the document level or at the layer level for GIS workflows.
 
If all or most design layers will have the same georeferencing information, use the Georeferencing command to set the parameters for the document. After the default document georeferencing is set, edit each design layer to enable georeferencing, and to customize the settings for individual layers, if needed.
 
 
Geolocation:
 
 
Geolocation consists of determining the precise situation occupied by a given object in space, according to its latitude, longitude, and height coordinates
 
 
 
Geo-refencing definition:
 
Georeferencing is the process of aligning the raster dataset, with the help of real-world coordinates, to its actual position on the earth (globe) (Esri, 2018). Georeferencing refers to the process of assigning map coordinates to image data. It allows to define the existence of a raster image in the physical space. Rectification is also known as geo-referencing. The alignment of an image to a map so that the image is planimetric, just like the map (Jensen, 2004). The process by which the geometry of an image is made planimetric (Jensen, 1986).
 
 
Why geo-referencing
 
When data from different sources are combined in GIS analysis, it is required to align them properly with the help of geo-referencing.
 
As the raster is made up of pixels, it does not store any information regarding location, so we cannot use it in real-world location until is it geo-referenced.
 
To calculate the exact area or extent of a raster dataset.
 
Satellite images inherent some un-systematic errors making its location shifted to the original xy-location.
 
Georeferencing is the process of aligning the geohraphic dataset, to a known coordinate system so it can be viewed, queried, and analysed with another geographic dataset.
 
 
This example uses absolute geo-referencing (image to map rectification) of google earth, topo-sheets and grown control point.
 
 
 
   
   
  +
This tutorial contains an introduction to the process of georeferencing imagery in the SAGA GIS software, as well as information on the fundamentals of the georeferencing process. It evaluates the interest and scope of document georeferencing with an example using absolute geo-referencing (image to map rectification) of google earth, topo-sheets and grown control point.
 
In cartography, georeferencing processes follow the identification of homologous points in the coordinate systems of two documents of different origin: 1) the raster coordinates system of a digitised ancient map without geographic coordinates; and 2) the coordinates system of a support map or reference cartography (Dávila-Martínez; Camacho-Arranz, 2012). The process usually consists of establishing a common location which both the reference cartography and the cartography without georeferencing share with certainty, and that has been maintained over time (geographical features, monuments, streets), thus indicating to the SIG that those two points in both maps are geographically the same (Figure 1); the more control points which are created, the more accurate the georeferencing will be (Arcgis, 2013; 2016).
 
 
 
What does "georeferenced" mean?
 
Georeferencing means that the internal coordinate system of a map or aerial photo image can be related to a ground system of geographic coordinates. The relevant coordinate transforms are typically stored within the image file (GeoPDF and GeoTIFF are examples), though there are many possible mechanisms for implementing georeferencing. The most visible effect of georeferencing is that display software can show ground coordinates (such as latitude/longitude or UTM coordinates) and also measure ground distances and areas.
 
 
   
  +
=====Coordinate Systems=====
Its use allows to revitalise and give new purpose to numerous and diverse ancient cartography that remains in archive deposits, libraries and cultural centres. Geo-referencing, with the help of digitization and web publication, facilitates access for non-expert users to geographical, heritage, urban or environmental information of interest. This technique allows us to embed the old map in current maps such Google Maps, Bing Maps or similar, and by means of transparency sensors, compare them, making possible the development of evolutionary historical studies by urbanists, historians or architects on how a city, a state or a territory has evolved.
 
   
   
  +
[[File:Gcs.gif|thumb|frame|center|Figure 2: Geographic Coordinate System]]
   
This article evaluates the interest and scope of document management of both technologies, analyses its contemporary application in cartographic and photographic management, and offers a systematised review of a significant number of practical cases from public and private institutions that have recently implemented their documentary heritage with success.
 
   
  +
Locations on the earth’s surface are measured in terms of coordinates, a set of two or more numbers that specifies a location in relation to a reference system, the graticule grid. The graticule specifies positions on the globe with latitude and longitude coordinates. The graticule refers to longitude and latitude on a three-dimensional globe. The graticule is based on an east-west scale called longitude and a north-south scale called latitude. When we use longitude and latitude on a two-dimensional map, we refer to these as geographic coordinates. [http://open.lib.umn.edu/mapping/chapter/3-scale-and-projections/ Source]
   
 
=====Projections=====
 
=====Projections=====
   
Beyond the specified uses and applications, geo-referencing is today an important area of study within the field of cartography (Witmer et al., 2006; Hill, 2009; Long et al., 2016). It is a fundamental element of ancient cartography, as it allows us to accurately reconstruct the geographical situation of plans on a large scale and without projections. Projection is the means by which features on the earth’s surface are transferred from the globe onto a flat sheet of paper. The concepts are better understood by the classic demonstration of wrapping a big piece of ‘photographic’ paper around the globe, turning a light on that is inside the globe, and thus developing an image of the world onto the ‘photographic’ paper.
 
   
  +
[[File:DATUM.jpg|thumb|frame|center|Figure 3: Datum]]
   
Projection basics are as follows:
 
 
*Four properties that can be distorted include area, shape, distance and/or direction. Simply put, a map is not a perfect representation of the features on the surface of the world – the globe is far more accurate.
 
 
*Projections are designed such that one or more of these properties suffers little (no) distortion. Two important projection types are conformal and equal-area. Each of these two projection types is suited to particular uses. Conformal maintains shape and direction and is well suited to navigation. Equal-area is obviously well suited to uses where area calculations (i.e. absolute size of polygons) or density values (i.e. number of trees per hectare) are important.
 
 
 
*Projections can be envisioned as a large piece of ‘photographic’ paper wrapped around a globe. A light inside the globe is turned on and features on the surface of the globe are projected onto the photographic paper. The photographic paper generally takes 3 shapes: cylinder, cone or just left flat. These three shapes are known as developable surfaces because they can be (unwrapped) laid flat without tearing or distortion – as compared to ‘peeling’ the skin off the globe and trying to lay it flat on a table with tearing. Cylindrical and conic projections are most common. A cylinder will touch (be tangent) along the equator and is thus best suited to equatorial regions of the world. A cone will rest on the globe at mid-latitude. Thus it is well suited to countries in the mid latitudes and especially those with a wide east-west dimension (i.e. Canada, China).
 
 
 
*Deciding which projection is best requires that you consider:
 
**Which property is to be preserved
 
**Location (primarily latitiude) of the area of interest
 
   
  +
The term “map projection” refers to both the process and product of transforming spatial coordinates on a three-dimensional sphere into a two-dimensional plane. Most projections use mathematical functions that take as inputs locations on the sphere and translate them into locations on a two-dimensional surface. [http://open.lib.umn.edu/mapping/chapter/3-scale-and-projections/ Source] Since the earth is not a perfect sphere, it is not a straightforward process to project a map onto the earth’s surface or transfer an object onto the surface. Projections are designed such that one or more of these properties suffer little to no distortion. Four properties that can be distorted in the process include area, shape, distance and/or direction. It is helpful to think about projections in physical terms. Simply put, the globe is far more accurate than a map to represent the features on the surface of the world. Projections can be envisioned as a large piece of ‘photographic’ paper wrapped around a globe. A light inside the globe is turned on and features on the surface of the globe are projected onto the photographic paper. The photographic paper generally takes 3 shapes: cylinder, cone or just left flat. These three shapes are known as developable surfaces because they can be (unwrapped) laid flat without tearing or distortion. Deciding which projection is best requires that you consider which property is to be preserved and the location (primarily latitude) of the area of interest. Cylindrical and conic projections are most common. [https://web.viu.ca/corrin/GIS/New_Folder/Georeferencing.htm Source] A cylinder will touch (be tangent) along the equator and is thus best suited to equatorial regions of the world. A cone will rest on the globe at mid-latitude. Thus it is well suited to countries in the mid-latitudes and especially those with a wide east-west dimension (i.e. Canada, China). Two important projection types are conformal and equal-area. Each of these two projection types is suited to particular uses. Conformal maintains shape and direction and is well suited to navigation. Equal-area is obviously well suited to uses where area calculations (i.e. the absolute size of polygons) or density values (i.e. the number of trees per hectare) are being analyzed [https://web.viu.ca/corrin/GIS/New_Folder/Georeferencing.htm Source]
  +
  +
[[File:Projections.jpg|thumb|frame|center|Figure 4: Planar, conical, and cylindrical projections]]
   
 
====Datum====
 
====Datum====
Datum is a reference surface used to generate coordinates (i.e. latitude and longitude). Latitudes and longitude are angular measures, given in degrees. Although latitudes/longitudes are really determined from the surface of the earth, it is easier to imagine yourself in the centre of the world looking out at the earth’s surface.
+
Datum is a reference surface used to generate coordinates (i.e. latitude and longitude). Latitudes and longitude are angular measures, given in degrees. Although latitudes/longitudes are really determined from the surface of the earth, it is easier to imagine yourself in the centre of the world looking out at the earth’s surface. [https://web.viu.ca/corrin/GIS/New_Folder/Georeferencing.htm Source] As mentioned, the world is not a perfect sphere: It’s more of an ellipsoid. It is easy to determine the latitudes and longitudes (the graticule) for a sphere. Figuring out the graticule on an ellipsoid is a manageable task, but determining the graticule on the irregular geoid is very complicated. Each part of the world uses its own ellipse. The ellipse used and how it is anchored to the earth is what is known as datum. Datum is the choice of ellipsoid to use. As the graticule (latitude/longitude) varies from ellipsoid to ellipsoid, changing datums will change the coordinates of a feature on the earth’s surface [https://web.viu.ca/corrin/GIS/New_Folder/Georeferencing.htm Source] Therefore, when features from different maps are combined onto one map (i.e. for an analysis in GIS) it is essential that the maps be of the same datum.
 
Imagine looking out at the equator. You would be looking straight out (i.e. flat), therefore your angle would be zero – indeed this is the latitude of the equator. Now imagine looking at VIU (in B.C. Canada). You would be looking up at an angle of about 49 degrees (latitude) from the equator. Looking straight up at Santa’s workshop equates to a right angle, or 90 degrees.
 
 
For longitude you start by looking out at Greenwich, England. That is your zero degree mark. As you turn towards the Atlantic Ocean you are turning west. Central America has longitudes around 90 degrees west. Note that 90 degrees East Longitude would run through Asia. So Longitudes go off in both directions from Greenwich and meet in the Pacific at 180 degrees (the international dateline). If the world was perfectly round we could stop here. Unfortunately …
 
 
… the world is not a perfect sphere. It’s more of an ellipsoid. This is because the earth is not a hardened rock (centre is molten, also surface is about 75% water). Since the earth spins, centrifugal force pulls out the earth at the equator. But wait, it gets uglier yet. The surface of the earth, and therefore the shape of the earth, is essentially mean sea level (m.s.l.). M.S.L. is determined not only by centrifugal force (pushing out at the equator) but also by earth’s gravity (that force that makes apples fall down instead of up). Here’s the kicker … m.s.l. is not a smooth, perfect ellipsoid. It is essentially a dented ellipsoid (more properly known as a geoid). This is because gravity is not constant. Mass and density of an object determine gravity. The density and mass of the earth’s crust varies,
 
· therefore, gravity varies,
 
· therefore, m.s.l. varies,
 
· therefore, the earth’s surface is an ellipsoid with slight undulations.
 
 
It is easy to determine the latitudes and longitudes (a.k.a. the graticule) for a sphere. Figuring out the graticule on an ellipsoid is a manageable task. But determining the graticule on the irregular geoid is very complicated. In the end it was decided that for small-scale maps a sphere would do just fine, but for medium and large-scale maps (1:250,000 to 1:5,000) an ellipse would be more accurate. (The math for the geoid is just too complicated to bother with).
 
 
The only complications are:
 
1. An ellipse that best approximates North America is not the best ellipse for Europe. Thus each part of the world uses its own ellipse. The ellipse used and how it is anchored to the earth is what is known as datum.
 
2. Our understanding of the earth’s true shape continues to change as technology changes – thus new datums continue to be developed.
 
 
For example, the datum (i.e. ellipse) used for North America in 1927 was based on an ellipse developed in 1866. This was known as NAD27 (for North America Datum 1927). After satellites were deployed and better measures of the earth were acquired, a new ellipse was developed in 1980. In 1983 it was decided to use this new ellipse for mapping in North America. The new datum is known as NAD83. Belize City did not move between 1927 and 1983. However, Belize City has different latitude and longitude under NAD83 than it did under NAD27. Indeed, some places in North America had a difference equivalent to 300 metres.
 
 
Datums have ‘nothing to do with’ distortions – they have ‘everything to do with’ location … specifically the coordinate (lat/long) of a feature on the earth’s surface. Datum is the choice of ellipsoid to use. As the graticule (latitude/longitude) varies from ellipsoid to ellipsoid, changing datums will change the coordinates of a feature on the earth’s surface. Therefore, when features from different maps are combined onto one map (i.e. for an analysis in GIS) it is essential that the maps be of the same datum.
 
   
 
==SAGA GIS==
 
==SAGA GIS==
[[File:Head_saga_title.png|frame|left|Figure 1: SAGA GIS Logo]]
+
[[File:Head_saga_title.png|frame|left|Figure 5: SAGA GIS Logo]]
For the following tutorial, '''System for Automated Geoscientific Analyses''', or '''SAGA GIS''' software will be used. SAGA GIS is a free, open-source geographic information system program, originally developed by a small team of researchers from the Department of Physical Geography in the University of Gottingen, Germany.When the SAGA GIS team began development in 2001, the purpose of the software was aligned with the needs of the development team, such as the analysis of raster imagery, with a focus on digital elevation models (DEM). SAGA has also been designed for an easy and effective implementation of spatial algorithms. Over the years, however, the software has broadened in scope, as it has seen many feature contributions from its world-wide user community. Interestingly, the users have freedom of improving the program, modifying it and releasing the improvements to the public. This resulted in a comprehensive, growing set of geo-scientific methods combined an easily approachable user interface with many visualization options. The software is available for Windows, Linux, and FreeBSD operating systems. (http://www.saga-gis.org/en/index.html)
+
For the following tutorial, '''System for Automated Geoscientific Analyses''', or '''SAGA GIS''' software will be used. SAGA GIS is a free, open-source geographic information system program, originally developed by a small team of researchers from the Department of Physical Geography in the University of Gottingen, Germany. When the SAGA GIS team began development in 2001, the purpose of the software was aligned with the needs of the development team, such as the analysis of raster imagery, with a focus on digital elevation models (DEM). SAGA has also been designed for an easy and effective implementation of spatial algorithms. Over the years, however, the software has broadened in scope, as it has seen many feature contributions from its world-wide user community. Interestingly, the users have freedom of improving the program, modifying it and releasing the improvements to the public. This resulted in a comprehensive, growing set of geo-scientific methods combined an easily approachable user interface with many visualization options. The software is available for Windows, Linux, and FreeBSD operating systems. [http://www.saga-gis.org/en/index.html Source]
   
   
Line 118: Line 58:
   
   
[[File:SAGAcapabilities.jpg|thumb|center|Figure 2: Capablities of SAGA GIS]]
+
[[File:SAGAcapabilities.jpg|thumb|center|Figure 6: Capablities of SAGA GIS]]
   
   
Line 127: Line 67:
   
 
==Data Acquisition==
 
==Data Acquisition==
For the following tutorials, you will need to acquire imagery from two sources: Satelite imagery from [https://www.google.com/earth/ Google Earth], and a PDF toposheet or scanned print map.
+
For the following tutorials, you will need to acquire raster data from two sources: Satelite imagery from [https://www.google.com/earth/ Google Earth], and a PDF topo-sheet/scanned print map.
===Google Earth===
 
For this tutorial, we will be using imagery from google earth. to obtain this imagery, perform the following steps.
 
   
#ensure that you have downloaded and installed [https://www.google.com/earth/ Google Earth] on your computer
 
# Open Google Earth, and zoom to the area of interest of your choice. for this tutorial, we used the area around the Smithsonian Museum of Natural History in Washington, DC, USA, but any location will suffice.
 
#In the '''Layers''' menu in the bottom left corner of your screen, uncheck all layers. Google earth renders terrain in 3d, and the perspective this creates can distort your exported imagery (See Figure 2).<br/><br/>[[File:LAYERSSAGA.PNG|thumb|center|Figure 2: Layers Menu of Google Earth]]<br/><br/>
 
#Ensure that your imagery is north-facing and vertically-angled by selecting '''View -> Reset -> Tilt and Compass''' in the menu bar at the top of the screen (See Figure 3)<br/><br/>[[File:TIltcompass.PNG|thumb|center|Figure 3: Resetting the Angle and Rotation of Google Earth]]<br/><br/>
 
# Under '''Tools -> Options''', ensure that under '''Show Lat/Long, Universal Transverse Mercator''' is selected.
 
#Using the '''Add Placemark''' tool (See Figure 4), add four or more placemarks to your screen. make note of their coordinates and label them numerically. change their icon to one that is more precise, location-wise.<br/><br/>[[File:Placemarks.PNG|thumb|center|Figure 4: Adding Placemarks in Google Earth]]<br/><br/>
 
# Save your image by selecting '''File -> Save -> Save Image''' in the menu bar at the top of the screen. then, press the '''Save Image''' Button (See Figure 5). <br/><br/>[[File:Saveimage.PNG|thumb|center|Figure 5: Saving Your Image]]<br/><br/>
 
   
  +
[[File:Googleearth.png|thumb|center|Figure 7: Google Earth logo]]
===Print Map===
 
For this tutorial, we will be using a scan of a historical watershed boundary map of Alberta, made available through the [https://open.alberta.ca/licence Open Government License]. the following pre-tutorial steps must be performed:
 
   
  +
  +
For the first example, we will be using imagery from Google Earth.Google Earth is a popular software to view world satellite image. It allows you to save and print higher resolution images and it is available for free download here: https://www.google.com/earth/download/gep/agree.html. Use your email address and the key GEPFREE to login to obtain this imagery.
  +
  +
For more imagery
  +
  +
If you do need to purchase imagery, you can try contacting some of the data providers. Here are a few address to start with, but there are others, try doing an internet search for satellite and aerial imagery:
  +
  +
*DigitalGlobe: https://www.digitalglobe.com/
  +
*Airbus Defence & Space: http://www.geo-airbusds.com/ (previously Astrium / Spot Image)
  +
*Terrametrics: http://www.truearth.com/
  +
*GeoPerspectives (Infoterra and Bluesky): http://www.bluesky-world.com/geoperspectives/
  +
*BlackBridge: http://www.blackbridge.com/rapideye/products/index.html
  +
*USGS: http://www.usgs.gov/pubprod/aerial.html
  +
*MapMart, imagery from various sources: http://ftp.mapmart.com/
  +
*TerraServer, distributor for a number of satellite and aerial image providers: http://www.terraserver.com/
  +
*Satellite Imaging Corporation, reseller for Astrium, BlackBridge: http://www.satimagingcorp.com/gallery.html
  +
*Skybox Imaging, recently acquired by Google: http://www.skyboximaging.com/
  +
  +
  +
Perform the following steps:
  +
  +
#Ensure that you have downloaded and installed [https://www.google.com/earth/ Google Earth] on your computer
  +
#Open Google Earth, and zoom to the area of interest of your choice. For this tutorial, we used the area around the Smithsonian Museum of Natural History in Washington, DC, USA, but you may also pick the location of your choice.
  +
#In the '''Layers''' menu in the bottom left corner of your screen, uncheck all layers. Google Earth renders terrain in 3D, and the perspective this creates can distort your exported imagery (See Figure 8).<br/><br/>[[File:LAYERSSAGA.PNG|thumb|center|Figure 8: Layers Menu of Google Earth]]<br/><br/>
  +
#Ensure that your imagery is north-facing and vertically-angled by selecting '''View -> Reset -> Tilt and Compass''' in the menu bar at the top of the screen (See Figure 9)<br/><br/>[[File:TIltcompass.PNG|thumb|center|Figure 9: Resetting the Angle and Rotation of Google Earth]]<br/><br/>
  +
#Under '''Tools -> Options''', ensure that under '''Show Lat/Long, Universal Transverse Mercator''' is selected.
  +
#Using the '''Add Placemark''' tool (See Figure 10), add four or more placemarks to your screen. make note of their coordinates and label them numerically. change their icon to one that is more precise, location-wise.<br/><br/>[[File:Placemarks.PNG|thumb|center|Figure 10: Adding Placemarks in Google Earth]]<br/><br/>
  +
#At any moment, you may change a placemark. To move or edit a placemark: In the left panel under '''My Places,''' right-click the placemark you want to move.
  +
#Click '''Properties'''. A yellow, blinking placemark box will appear.
  +
#Drag the placemark to a new location.
  +
#In the Edit Placemark dialog, you can edit other placemark info like description, style, and color.
  +
#Click '''OK'''. <br/><br/> [[File:Placemark.PNG|thumb|center|Figure 11: Editing Placemarks in Google Earth]] <br/><br/>
  +
#Once you're ready, save your image by selecting '''File -> Save -> Save Image''' in the menu bar at the top of the screen. then, press the '''Save Image''' Button (See Figure 12). <br/><br/> [[File:Saveimage.PNG|thumb|center|Figure 12: Saving Your Image]]
  +
  +
===Print Map===
  +
For the second example, we will be using a scan of a historical watershed boundary map of Alberta, made available through the [https://open.alberta.ca/licence Open Government License]. the following pre-tutorial steps must be performed:
 
# Download the file from the [http://aep.alberta.ca/forms-maps-services/maps/map-product-downloads/documents/SampleMap-aug-2017.pdf following link]. you can use any other PDF or raster map as long as it contains some sort of absolute location information.
 
# Download the file from the [http://aep.alberta.ca/forms-maps-services/maps/map-product-downloads/documents/SampleMap-aug-2017.pdf following link]. you can use any other PDF or raster map as long as it contains some sort of absolute location information.
# If necessary, convert the pdf to a raster TIF file. many free websites exist to perform this conversion, such as [http://www.pdfaid.com/pdf-to-tiff.aspx PDFaid.com]. Ensure that the conversion is performed at a high enough DPI that all text is legible. for this tutorial, we chose 150 DPI.
+
# If necessary, convert the PDF to a raster TIF file. many free websites exist to perform this conversion, such as [http://www.pdfaid.com/pdf-to-tiff.aspx PDFaid.com]. Ensure that the conversion is performed at a high enough DPI that all text is legible. for this tutorial, we chose 150 DPI.
 
# Save the converted file in a working directory of your choice.
 
# Save the converted file in a working directory of your choice.
  +
  +
[[File:Historical map.png|thumb|center|Figure 13: Sample map]]
   
 
==Tutorial==
 
==Tutorial==
Line 150: Line 118:
 
In the following tutorial, the process of georeferencing a historical map in SAGA GIS will be explained. To begin, we will import the image into SAGA GIS.
 
In the following tutorial, the process of georeferencing a historical map in SAGA GIS will be explained. To begin, we will import the image into SAGA GIS.
   
# In the '''Tools''' tab, select '''Import/Export -> Images -> Import Image'''
+
# In the '''Tools''' tab, select '''Import/Export -> Images -> Import Image'''. Another way to find any geoprocessing tools in SAGA GIS is to go to '''Geoprocessing''' -> Find and Run Tool -> Type Import Image.
 
# In the '''Image File''' field, select the historical map you downloaded earlier
 
# In the '''Image File''' field, select the historical map you downloaded earlier
 
# In the '''Options''' field. select '''Enforce True Colour'''
 
# In the '''Options''' field. select '''Enforce True Colour'''
# Double click your imported file in the '''Data''' Tab in order to view the file.<br/><br/>[[File:Openfile.PNG|thumb|center|Figure 6: Importing Imagery into SAGA GIS]]<br/><br/>
+
# Double click your imported file in the '''Data''' Tab in order to view the file.<br/><br/>[[File:Openfile.PNG|thumb|center|Figure 14: Importing Imagery into SAGA GIS]]<br/><br/>
   
 
====Creating Ground Control Points====
 
====Creating Ground Control Points====
   
  +
[[File:GUID-79A52787-181E-4AF3-8E26-A4A2E7E11FAC-web.gif|thumb|center|Figure 15: Ground Control Points]]
In order to georeference an image, we use '''Ground Control Points''' (GCPs). these are points that establish a relationship between the pixel coordinate system of the raster to a coordinate system of the earth. GCPs are typically placed at sharp features such as intersections or easily visible landmarks, but for this map, we will use sections of the map graticule with known coordinates.
 
  +
  +
  +
In order to georeference an image, we use '''Ground Control Points''' (GCPs). These are points that establish a relationship between the pixel coordinate system of the raster to a coordinate system of the earth. The connection between these points is said to be a Link: the complexity of the image will define how many numbers of links are needed to rectify the image. To get the best results, one must georeference the image to the highest resolution. It will facilitate the process of shifting the raster datasets from its original location to spatially corrected location. Also, Adding more control points can increase the overall accuracy of a geo-referenced image transformation. [http://desktop.arcgis.com/en/arcmap/10.3/manage-data/raster-and-images/fundamentals-for-georeferencing-a-raster-dataset.htm Source] GCPs are typically placed at sharp features such as intersections or easily visible landmarks, but for this map, we will use sections of the map graticule with known coordinates.
   
 
# To start creating the GCPs, we will run the '''Create Reference Points''' module. in the '''Tools''' tab, select '''Projection -> Georeferencing -> Create Reference Points [Interactive]''''.
 
# To start creating the GCPs, we will run the '''Create Reference Points''' module. in the '''Tools''' tab, select '''Projection -> Georeferencing -> Create Reference Points [Interactive]''''.
 
#Click the '''Okay''' button in the pop-up menu. this module creates a shapefile with two attribute fields, used to store the latitude and longitude of a point.
 
#Click the '''Okay''' button in the pop-up menu. this module creates a shapefile with two attribute fields, used to store the latitude and longitude of a point.
# Zoom to an area of the imported file with known coordinates, such as the intersection of two known graticules (See figure 7). <br/><br/>[[File:Graticules.PNG|thumb|center|Figure 7: Initial GCP Location]]<br/><br/>
+
# Zoom to an area of the imported file with known coordinates, such as the intersection of two known graticules (See Figure 16) <br/><br/>[[File:Graticules.PNG|thumb|center|Figure 16: Initial GCP Location]]<br/><br/>
# Select the Action button (See figure 8), and click the location of your first GCP. in the pop-up window, enter the x and y (on earth) coordinates of that point. <br/><br/>[[File:Action_button.PNG|thumb|center|Figure 8: Action Button]]<br/><br/>
+
# Select the Action button (See Figure 17), and click the location of your first GCP. in the pop-up window, enter the x and y (in Decimal Degrees) coordinates of that point. <br/><br/>
  +
# Repeat this process at least four more times, each with a different point. Once you have completed this, end the module by selecting '''Geoprocessing -> Create Reference Points [Interactive]''' in the menu bar at the top of the screen (See figure 9). <br/><br/>[[File:Endmodule.PNG|thumb|center|Figure 9: Ending a Module]]<br/><br/>
 
  +
*Note the coordinates of this intersection is in DDMMSS (116 °00’, 54°30’). You can convert degrees, minutes, seconds for both latitude and longitude to decimal degrees. To calculate decimal degrees, we use the DMS to decimal degree formula below:
  +
  +
First of all let's take a look at the symbols:
  +
° : degree
  +
' : minute
  +
" : second
  +
1 minute is equal to 60 seconds.
  +
1 degree is equal to 1 hour, that is equal to 60 minutes or 3600 seconds.
  +
DDlat = 116 °00’
  +
DDlong = 54°30’
  +
  +
Decimal Degrees = degrees + (minutes/60) + (seconds/3600)
  +
DDlat = 116 + (0/60) + (0/3600)
  +
DDlong = 54 + (30/60) + (0/3600)
  +
  +
(X,Y) = (116.0, 54.5)
  +
  +
<br/><br/> [[File:Action_button.PNG|thumb|center|Figure 17: Action Button]]<br/><br/>
  +
# Repeat this process at least four more times, each with a different point. Once you have completed this, end the module by selecting '''Geoprocessing -> Create Reference Points [Interactive]''' in the menu bar at the top of the screen (See Figure 18). <br/><br/>[[File:Endmodule.PNG|thumb|center|Figure 18: Ending a Module]]<br/><br/>
  +
#After adding the GCPs to the image, you can have a look at the added GCPs and the pixel coordinates associated with them. '''Go to the data tab -> Right click on the Reference Point (Origin) layer -> Attributes -> Show''' <br/><br/> [[File:Sagagis attributetable.png|thumb|center|Figure 19: GCPs attribute table]] <br/><br/>
  +
#If at any time you need to edit, save or delete any Control Points collected, this can be done by accessing the View Link Table button on the Georeferencing taskbar (highlighted in red below). This table displays the Control Point(s) information as well as the Transformation and Auto-Adjust options which control how the raster image responds to the addition of control points. Each line represents a Control Point, a link between the raster image and the digital map data. Both the Source and Map Points can be edited by double-clicking on the values in the table. Clicking on the Save button allows the points table to be saved as a text file while the Load button allows for a set of control points stored in a text file to be loaded and edited. Saving a text file of your control points is strongly recommended. For images requiring many control points to georeference, periodically saving your control points to a text file allows you to come back to your work in case you are not able to finish it in one session. <br/><br/>
   
 
====Defining Projection====
 
====Defining Projection====
   
We must now add projection information to the image. According to our map, the projection used is '''NAD 1927 UTM'''.
+
We must now add projection information to the image.
  +
  +
Use the '''Zoom Tool''' to find the coordinate system of the map on the image. It is usually found near the scale bar on the left bottom of a map or in the right margin.
  +
According to our map, the projection used is '''NAD 1927 UTM'''.
  +
  +
#Open the '''Set Coordinate Reference System''' module. in the '''Tools''' tab, select '''Projection -> Proj.4 -> Set Coordinate Reference System'''. Select the '''User Defined''' field, and in the popup menu, change the '''Projection Type''' field to '''Universal Transverse Mercator (UTM)'''. in the '''Predefined Datum''' Field, select '''North_American_Datum_1927'''. In the popup menu, press '''Okay'''. (See Figure 20) <br/><br/>[[File:Setcoord.PNG|thumb|center|Figure 20: Setting a Coordinate System]]<br/><br/>
  +
# In the module menu, under the '''Data Objects''' section, select the '''Grids''' Field. A popup menu will open up. Select your image file and click the '''>''' button to transfer it to the right side of the popup menu. Click '''Okay''' to finish. (see Figure 21) <br/><br/>[[File:Gridselect.PNG|thumb|center|Figure 21: Selecting a grid in the Data Objects Menu]]<br/><br/>
   
#Open the '''Set Coordinate Reference System''' module. in the '''Tools''' tab, select '''Projection -> Proj.4 -> Set Coordinate Reference System'''. Select the '''User Defined''' field, and in the popup menu, change the '''Projection Type''' field to '''Universal Transverse Mercator (UTM)'''. in the '''Predefined Datum''' Field, select '''North_American_Datum_1927'''. In the popup menu, press '''Okay'''. (See Figure 10 <br/><br/>[[File:Setcoord.PNG|thumb|center|Figure 10: Setting a Coordinate System]]<br/><br/>
 
# In the module menu, under the '''Data Objects''' section, select the '''Grids''' Field. A popup menu will open up. Select your image file and click the '''>''' button to transfer it to the right side of the popup menu. Click '''Okay''' to finish. (see Figure 11) <br/><br/>[[File:Gridselect.PNG|thumb|center|Figure 11: Selecting a grid in the Data Objects Menu]]<br/><br/>
 
 
====Georeferencing the Grid====
 
====Georeferencing the Grid====
   
 
We now possess all the necessary components to Georeference the map.
 
We now possess all the necessary components to Georeference the map.
   
# Open the '''Rectify Grid''' module. in the '''Tools''' tab, select '''Projection -> Georeferencing -> Rectify Grid'''.
+
# Open the '''Rectify Grid''' module. in the '''Tools''' tab, select '''Projection -> Georeferencing -> Rectify Grid'''. <br/><br/>
# In the '''Reference Points (origin)''' Field, select your generated GCP shapefile. in the '''Grid System''' Field, select the grid system of your imported map. In the '''Grid''' field, select your imported image (make sure it is the one that you defined a projection for). In the '''Method''' field, select '''Automatic''' (these choices will be explained in the following tutorial). in the '''Resampling''' field, select '''Nearest Neighbour'''.
+
# In the '''Reference Points (origin)''' Field, select your generated GCP shapefile. in the '''Grid System''' Field, select the grid system of your imported map. In the '''Grid''' field, select your imported image (make sure it is the one that you defined a projection for). In the '''Method''' field, select '''Automatic''' (these choices will be explained in the following tutorial). in the '''Resampling''' field, select '''Nearest Neighbour'''. <br/><br/>
# A popup menu will open up. set the '''Cell Size''' field to '''1''' (or whatever resolution you desire).
+
# A popup menu will open up. set the '''Cell Size''' field to '''1''' (or whatever resolution you desire). <br/><br/>
# In the popup menu, press '''Okay'''
+
# In the popup menu, press '''Okay''' <br/><br/>
 
# To save your georeferenced image, in the '''Data''' tab, right click the image and press '''Save As'''.
 
# To save your georeferenced image, in the '''Data''' tab, right click the image and press '''Save As'''.
  +
# Select the toposheet under the data list. Go to the description and look for the entry next to '''Projection'''. You’ll see that the projection system is now assigned. <br/><br/>
 
  +
# Once completed, a new toposheet will appear in the data list. To open it, double-click on it. As you move your cursor on the map you should see that the Lat/Long values have changed to real-world values.
   
 
Congratulations, you have just georeferenced a map in SAGA GIS!
 
Congratulations, you have just georeferenced a map in SAGA GIS!
  +
  +
Then you can load this image and use it to determining the precise situation occupied by a given object in space, according to its latitude, longitude, and height coordinates. Now that georeferencing is enabled in your map, you may digitize features into layers and it will store information that describes their mapping onto a geographic coordinate system of latitude and longitude. Since all design layers will have the same georeferencing information, you may edit each design layer, if needed and perform a geospatial analysis.
   
 
===Georeferencing Google Earth Imagery===
 
===Georeferencing Google Earth Imagery===
Line 188: Line 187:
 
The process for georeferencing google earth imagery is very similar to georeferencing a historical map or topo sheet. The main differences are as follows:
 
The process for georeferencing google earth imagery is very similar to georeferencing a historical map or topo sheet. The main differences are as follows:
   
# Instead of using graticles for the GCP locations, use the points you created in google earth when collecting the image
+
*Instead of using graticles for the GCP locations, use the points you created in google earth when collecting the image
# Google earth uses the WGS84 Datum and the Equidistant Cylindrical (Plate Caree) Projection. Make sure to use these when defining a projection.
+
*Google earth uses the WGS84 Datum and the Equidistant Cylindrical (Plate Caree) Projection. Make sure to use these when defining a projection.
# Google Earth imagery is NOT orthorectified. If you have any points of known location you can use as GCPs, you may want to, as well as a comparison with LANDSAT imagery if possible.
+
*Google Earth imagery is NOT orthorectified. If you have any points of known location you can use as GCPs, you may want to, as well as a comparison with LANDSAT imagery if possible.
  +
  +
  +
#Open your saved image into SAGA software, for that go to '''File> Open'''. Change the file type to '''All files''', then select your Google Earth image. In our case file name is “Georefrence.jpg”. <br/><br/>
  +
# Now select the Thumbnail image and click on '''Add to Map''''. The image will be displayed on the Map window. <br/><br/>
  +
# The image is missing the projection coordinate system, if you click on the description tab you will notice that. Google Earth is on '''WGS 84''' projection. <br/><br/>
  +
# Click on the '''Geoprocessing > Projection > Georeferencing > Create Reference Points''''. Then Create Reference Points window Opens, click Okay to edit the GCP (Ground Control Points). <br/><br/>
  +
# Select the Action button and click on a reference point that is on the image. Create Reference point window opens, fill X and Y value using the list for the 4 placemarks you added in Google Earth. Note, X is the longitude and Y is the latitude and then Press Okay to register the point. If you notice on the description tab, you will see registered coordinates. Do this for your 3 other points. <br/><br/>
  +
# To assign the coordinate system, first of all, check off the “Create Reference Points” and then press Okay. Now, go to the '''Projection > Set Coordinate Reference System'''. As we have already taken the WGS 84 coordinate system, you just need to assign the GRID object. Select the Georeference file that we are working on this tutorial, then press '''Okay'''. <br/><br/>
  +
# Now we need to rectify the image.'''Go to Geoprocessing > Georeferencing > Rectify Grid'''. Select the “reference points” under '''Reference Points (original)''' and under the Grids assign both the column. You can select the sampling technique. Then press Okay, which will add the new rectified image on the manager window.
  +
  +
You will notice the new image is added on the Manager window, right-click the image and click '''Add to Map'''. This is your rectified georeferenced image.
   
 
===Transformations and Interpolation===
 
===Transformations and Interpolation===
   
 
====Transformations====
 
====Transformations====
Because images obtained from aerial photography may be distorted, often it is necessary to apply a '''Transformation''' during the georeferencing process. Different transformations are available at the following transformations are available in SAGA GIS
+
Because images obtained from aerial photography may be distorted, often it is necessary to apply a '''Transformation''' during the georeferencing process. The relevant coordinate transforms are typically stored within the image file (GeoPDF and GeoTIFF are examples), though there are many possible mechanisms for implementing georeferencing. Different transformations are available at the following transformations are available in SAGA GIS.
  +
  +
[[File:GUID-7A915DDE-DF6C-4FEF-AC1B-C1AED1A1BACB-web.gif|thumb|center|Figure 22: Transformations]]
   
 
=====Triangulation=====
 
=====Triangulation=====
Line 223: Line 235:
 
=====Second Order Polynomial=====
 
=====Second Order Polynomial=====
   
Second order polynomial transformations, or quadratic transformations, begin to introduce curvature into the shape of the transformed image. [http://desktop.arcgis.com/en/arcmap/10.3/manage-data/raster-and-images/fundamentals-for-georeferencing-a-raster-dataset.htm citation] a 2nd order polynomial transformation applies a simple global curvature to the raster. [https://www.helyx.co.uk/wp-content/uploads/2015/07/Transformations-White-Paper-low-res.pdf Citation]
+
Second order polynomial transformations, or quadratic transformations, begin to introduce curvature into the shape of the transformed image a 2nd order polynomial transformation applies a simple global curvature to the raster. [http://desktop.arcgis.com/en/arcmap/10.3/manage-data/raster-and-images/fundamentals-for-georeferencing-a-raster-dataset.htm Source]
   
 
A second order polynomial requires 6 GCPs
 
A second order polynomial requires 6 GCPs
Line 264: Line 276:
 
For the same reasons as Bilinear Interpolation, Bicubic Spline interpolation should not be used for categorical data.
 
For the same reasons as Bilinear Interpolation, Bicubic Spline interpolation should not be used for categorical data.
   
[http://desktop.arcgis.com/en/arcmap/10.3/manage-data/raster-and-images/fundamentals-for-georeferencing-a-raster-dataset.htm citation].
+
[http://desktop.arcgis.com/en/arcmap/10.3/manage-data/raster-and-images/fundamentals-for-georeferencing-a-raster-dataset.htm Source].
   
 
====B-Spline Interpolation====
 
====B-Spline Interpolation====
   
B-spline interpolation makes use of a sequence of increasingly fine-scale bicubic functions to approximate the function of a single B-spline function. This functions similarly to B-spline interpolation, but is more computationally efficient. [http://www.saga-gis.org/saga_tool_doc/2.1.3/grid_spline_4.html citation]
+
B-spline interpolation makes use of a sequence of increasingly fine-scale bicubic functions to approximate the function of a single B-spline function. This functions similarly to B-spline interpolation, but is more computationally efficient. [http://www.saga-gis.org/saga_tool_doc/2.1.3/grid_spline_4.html Source]
  +
  +
==Summary==
  +
  +
In this exercise, you applied many well-distributed control points of previously known locations to georeference an image that did not have geospatial information embedded in it. It allowed you to define the existence of a raster image in relation to physical geographic space, making it eligible for geospatial analysis. You also learned how rectification, also known as geo-referencing, works and how the alignment of an image is made using location coordinates in a spatial referencing system. Sometimes, the when an image does not properly align with other data and requires a transformation in order to be used in conjunction with existing data. Now that you are familiar with this technique, you should study the effects of various transformations available in SAGA GIS and learn how to save georeferencing information with the raster or as control points in a text file for reuse. We hope that this practical case taught you the importance and relevance of this geoprocessing technique to contemporary applications in cartographic and photographic management.

Latest revision as of 15:40, 5 October 2018

Introduction

Geo-referencing

Figure 1: Geo-referencing


Much of the raster data in the world can be geo-referenced, which indicates the importance of geospatial big data handling. Source These datasets are traditionally collected using ground surveying, photogrammetry, and remote sensing, and more recently through laser scanning, mobile mapping, geo-located sensors, geo-tagged web contents, volunteer geographic information (VGI), global navigation satellite system (GNSS) tracking and so on. Raster data produced by scanning aerial photographs, toposheets, or print maps normally do not contain any spatial reference information as they are made up of pixels. In addition, satellite images may inherit some un-systematic errors making its location shifted to the original XY-location. Source Georeferencing rasters is a common and important task in the field of geospatial analysis, especially when working with historical imagery or maps. The process usually consists of aligning geographic data to a known coordinate system so it can be viewed, queried and analyzed with other geographic data. For instance, geo-referencing is useful to calculate the exact area or extent of a raster dataset. Georeferencing may involve shifting, rotating, scaling, skewing, and in some cases warping, rubber sheeting, or ortho-rectifying the data. Source The most visible effect of georeferencing is that display software can show ground coordinates (such as latitude/longitude or UTM coordinates) and also measure ground distances and areas.


This tutorial contains an introduction to the process of georeferencing imagery in the SAGA GIS software, as well as information on the fundamentals of the georeferencing process. It evaluates the interest and scope of document georeferencing with an example using absolute geo-referencing (image to map rectification) of google earth, topo-sheets and grown control point.

Coordinate Systems
Figure 2: Geographic Coordinate System


Locations on the earth’s surface are measured in terms of coordinates, a set of two or more numbers that specifies a location in relation to a reference system, the graticule grid. The graticule specifies positions on the globe with latitude and longitude coordinates. The graticule refers to longitude and latitude on a three-dimensional globe. The graticule is based on an east-west scale called longitude and a north-south scale called latitude. When we use longitude and latitude on a two-dimensional map, we refer to these as geographic coordinates. Source

Projections
Figure 3: Datum


The term “map projection” refers to both the process and product of transforming spatial coordinates on a three-dimensional sphere into a two-dimensional plane. Most projections use mathematical functions that take as inputs locations on the sphere and translate them into locations on a two-dimensional surface. Source Since the earth is not a perfect sphere, it is not a straightforward process to project a map onto the earth’s surface or transfer an object onto the surface. Projections are designed such that one or more of these properties suffer little to no distortion. Four properties that can be distorted in the process include area, shape, distance and/or direction. It is helpful to think about projections in physical terms. Simply put, the globe is far more accurate than a map to represent the features on the surface of the world. Projections can be envisioned as a large piece of ‘photographic’ paper wrapped around a globe. A light inside the globe is turned on and features on the surface of the globe are projected onto the photographic paper. The photographic paper generally takes 3 shapes: cylinder, cone or just left flat. These three shapes are known as developable surfaces because they can be (unwrapped) laid flat without tearing or distortion. Deciding which projection is best requires that you consider which property is to be preserved and the location (primarily latitude) of the area of interest. Cylindrical and conic projections are most common. Source A cylinder will touch (be tangent) along the equator and is thus best suited to equatorial regions of the world. A cone will rest on the globe at mid-latitude. Thus it is well suited to countries in the mid-latitudes and especially those with a wide east-west dimension (i.e. Canada, China). Two important projection types are conformal and equal-area. Each of these two projection types is suited to particular uses. Conformal maintains shape and direction and is well suited to navigation. Equal-area is obviously well suited to uses where area calculations (i.e. the absolute size of polygons) or density values (i.e. the number of trees per hectare) are being analyzed Source

Figure 4: Planar, conical, and cylindrical projections

Datum

Datum is a reference surface used to generate coordinates (i.e. latitude and longitude). Latitudes and longitude are angular measures, given in degrees. Although latitudes/longitudes are really determined from the surface of the earth, it is easier to imagine yourself in the centre of the world looking out at the earth’s surface. Source As mentioned, the world is not a perfect sphere: It’s more of an ellipsoid. It is easy to determine the latitudes and longitudes (the graticule) for a sphere. Figuring out the graticule on an ellipsoid is a manageable task, but determining the graticule on the irregular geoid is very complicated. Each part of the world uses its own ellipse. The ellipse used and how it is anchored to the earth is what is known as datum. Datum is the choice of ellipsoid to use. As the graticule (latitude/longitude) varies from ellipsoid to ellipsoid, changing datums will change the coordinates of a feature on the earth’s surface Source Therefore, when features from different maps are combined onto one map (i.e. for an analysis in GIS) it is essential that the maps be of the same datum.

SAGA GIS

Figure 5: SAGA GIS Logo

For the following tutorial, System for Automated Geoscientific Analyses, or SAGA GIS software will be used. SAGA GIS is a free, open-source geographic information system program, originally developed by a small team of researchers from the Department of Physical Geography in the University of Gottingen, Germany. When the SAGA GIS team began development in 2001, the purpose of the software was aligned with the needs of the development team, such as the analysis of raster imagery, with a focus on digital elevation models (DEM). SAGA has also been designed for an easy and effective implementation of spatial algorithms. Over the years, however, the software has broadened in scope, as it has seen many feature contributions from its world-wide user community. Interestingly, the users have freedom of improving the program, modifying it and releasing the improvements to the public. This resulted in a comprehensive, growing set of geo-scientific methods combined an easily approachable user interface with many visualization options. The software is available for Windows, Linux, and FreeBSD operating systems. Source


Features

  • Object oriented system design (C++)
  • Modular structure allows framework independent function development
  • SAGA API with immense support for geodata handling
  • GUI for intuitive data management, analysis and visualization
  • Runs on Linux as well as on Windows operating systems
  • Portable software running without installation even from memory sticks (MSW)
  • Free and Open Source Software (FOSS)
  • Scripting via command line, Python, Java, R
  • Far more than 450 freely available functions for geodata analysis
  • Georeferencing and cartographic projections
  • Grid interpolation of scattered point data, triangulation, IDW, splines, ...
  • Vector tools: clipping, buffer zones, raster to vector conversion, ...
  • Image analysis: filters, supervised classification, PCA, FFT, OBIA, ...
  • Geostatistics: GWR, variograms, ordinary & universal Kriging, ...
  • Terrain analysis: morphometry, hydrology, illumination, classification, ...
  • and many more ...


Figure 6: Capablities of SAGA GIS


Installation Instructions

The latest version of SAGA GIS can be downloaded on the SAGA GIS Sourceforge page. At the time of writing, the latest version of SAGA GIS is 6.4.0. Documentation for the SAGA GIS tool library can be found in the SAGA-GIS Tool Library Documentation

Data Acquisition

For the following tutorials, you will need to acquire raster data from two sources: Satelite imagery from Google Earth, and a PDF topo-sheet/scanned print map.


Figure 7: Google Earth logo


For the first example, we will be using imagery from Google Earth.Google Earth is a popular software to view world satellite image. It allows you to save and print higher resolution images and it is available for free download here: https://www.google.com/earth/download/gep/agree.html. Use your email address and the key GEPFREE to login to obtain this imagery.

For more imagery

If you do need to purchase imagery, you can try contacting some of the data providers. Here are a few address to start with, but there are others, try doing an internet search for satellite and aerial imagery:


Perform the following steps:

  1. Ensure that you have downloaded and installed Google Earth on your computer
  2. Open Google Earth, and zoom to the area of interest of your choice. For this tutorial, we used the area around the Smithsonian Museum of Natural History in Washington, DC, USA, but you may also pick the location of your choice.
  3. In the Layers menu in the bottom left corner of your screen, uncheck all layers. Google Earth renders terrain in 3D, and the perspective this creates can distort your exported imagery (See Figure 8).

    Figure 8: Layers Menu of Google Earth


  4. Ensure that your imagery is north-facing and vertically-angled by selecting View -> Reset -> Tilt and Compass in the menu bar at the top of the screen (See Figure 9)

    Figure 9: Resetting the Angle and Rotation of Google Earth


  5. Under Tools -> Options, ensure that under Show Lat/Long, Universal Transverse Mercator is selected.
  6. Using the Add Placemark tool (See Figure 10), add four or more placemarks to your screen. make note of their coordinates and label them numerically. change their icon to one that is more precise, location-wise.

    Figure 10: Adding Placemarks in Google Earth


  7. At any moment, you may change a placemark. To move or edit a placemark: In the left panel under My Places, right-click the placemark you want to move.
  8. Click Properties. A yellow, blinking placemark box will appear.
  9. Drag the placemark to a new location.
  10. In the Edit Placemark dialog, you can edit other placemark info like description, style, and color.
  11. Click OK.

    Figure 11: Editing Placemarks in Google Earth


  12. Once you're ready, save your image by selecting File -> Save -> Save Image in the menu bar at the top of the screen. then, press the Save Image Button (See Figure 12).

    Figure 12: Saving Your Image

Print Map

For the second example, we will be using a scan of a historical watershed boundary map of Alberta, made available through the Open Government License. the following pre-tutorial steps must be performed:

  1. Download the file from the following link. you can use any other PDF or raster map as long as it contains some sort of absolute location information.
  2. If necessary, convert the PDF to a raster TIF file. many free websites exist to perform this conversion, such as PDFaid.com. Ensure that the conversion is performed at a high enough DPI that all text is legible. for this tutorial, we chose 150 DPI.
  3. Save the converted file in a working directory of your choice.
Figure 13: Sample map

Tutorial

Georeferencing a Historical Map

In the following tutorial, the process of georeferencing a historical map in SAGA GIS will be explained. To begin, we will import the image into SAGA GIS.

  1. In the Tools tab, select Import/Export -> Images -> Import Image. Another way to find any geoprocessing tools in SAGA GIS is to go to Geoprocessing -> Find and Run Tool -> Type Import Image.
  2. In the Image File field, select the historical map you downloaded earlier
  3. In the Options field. select Enforce True Colour
  4. Double click your imported file in the Data Tab in order to view the file.

    Figure 14: Importing Imagery into SAGA GIS


Creating Ground Control Points

Figure 15: Ground Control Points


In order to georeference an image, we use Ground Control Points (GCPs). These are points that establish a relationship between the pixel coordinate system of the raster to a coordinate system of the earth. The connection between these points is said to be a Link: the complexity of the image will define how many numbers of links are needed to rectify the image. To get the best results, one must georeference the image to the highest resolution. It will facilitate the process of shifting the raster datasets from its original location to spatially corrected location. Also, Adding more control points can increase the overall accuracy of a geo-referenced image transformation. Source GCPs are typically placed at sharp features such as intersections or easily visible landmarks, but for this map, we will use sections of the map graticule with known coordinates.

  1. To start creating the GCPs, we will run the Create Reference Points module. in the Tools tab, select Projection -> Georeferencing -> Create Reference Points [Interactive]'.
  2. Click the Okay button in the pop-up menu. this module creates a shapefile with two attribute fields, used to store the latitude and longitude of a point.
  3. Zoom to an area of the imported file with known coordinates, such as the intersection of two known graticules (See Figure 16)

    Figure 16: Initial GCP Location


  4. Select the Action button (See Figure 17), and click the location of your first GCP. in the pop-up window, enter the x and y (in Decimal Degrees) coordinates of that point.

  • Note the coordinates of this intersection is in DDMMSS (116 °00’, 54°30’). You can convert degrees, minutes, seconds for both latitude and longitude to decimal degrees. To calculate decimal degrees, we use the DMS to decimal degree formula below:
First of all let's take a look at the symbols: 
° : degree 
' : minute 
" : second 
1 minute is equal to 60 seconds. 
1 degree is equal to 1 hour, that is equal to 60 minutes or 3600 seconds. 
DDlat = 116 °00’
DDlong = 54°30’ 
Decimal Degrees = degrees + (minutes/60) + (seconds/3600) 
DDlat = 116 + (0/60) + (0/3600) 
DDlong = 54 + (30/60) + (0/3600)
(X,Y) = (116.0, 54.5)



Figure 17: Action Button



  1. Repeat this process at least four more times, each with a different point. Once you have completed this, end the module by selecting Geoprocessing -> Create Reference Points [Interactive] in the menu bar at the top of the screen (See Figure 18).

    Figure 18: Ending a Module


  2. After adding the GCPs to the image, you can have a look at the added GCPs and the pixel coordinates associated with them. Go to the data tab -> Right click on the Reference Point (Origin) layer -> Attributes -> Show

    Figure 19: GCPs attribute table


  3. If at any time you need to edit, save or delete any Control Points collected, this can be done by accessing the View Link Table button on the Georeferencing taskbar (highlighted in red below). This table displays the Control Point(s) information as well as the Transformation and Auto-Adjust options which control how the raster image responds to the addition of control points. Each line represents a Control Point, a link between the raster image and the digital map data. Both the Source and Map Points can be edited by double-clicking on the values in the table. Clicking on the Save button allows the points table to be saved as a text file while the Load button allows for a set of control points stored in a text file to be loaded and edited. Saving a text file of your control points is strongly recommended. For images requiring many control points to georeference, periodically saving your control points to a text file allows you to come back to your work in case you are not able to finish it in one session.

Defining Projection

We must now add projection information to the image.

Use the Zoom Tool to find the coordinate system of the map on the image. It is usually found near the scale bar on the left bottom of a map or in the right margin. According to our map, the projection used is NAD 1927 UTM.

  1. Open the Set Coordinate Reference System module. in the Tools tab, select Projection -> Proj.4 -> Set Coordinate Reference System. Select the User Defined field, and in the popup menu, change the Projection Type field to Universal Transverse Mercator (UTM). in the Predefined Datum Field, select North_American_Datum_1927. In the popup menu, press Okay. (See Figure 20)

    Figure 20: Setting a Coordinate System


  2. In the module menu, under the Data Objects section, select the Grids Field. A popup menu will open up. Select your image file and click the > button to transfer it to the right side of the popup menu. Click Okay to finish. (see Figure 21)

    Figure 21: Selecting a grid in the Data Objects Menu


Georeferencing the Grid

We now possess all the necessary components to Georeference the map.

  1. Open the Rectify Grid module. in the Tools tab, select Projection -> Georeferencing -> Rectify Grid.

  2. In the Reference Points (origin) Field, select your generated GCP shapefile. in the Grid System Field, select the grid system of your imported map. In the Grid field, select your imported image (make sure it is the one that you defined a projection for). In the Method field, select Automatic (these choices will be explained in the following tutorial). in the Resampling field, select Nearest Neighbour.

  3. A popup menu will open up. set the Cell Size field to 1 (or whatever resolution you desire).

  4. In the popup menu, press Okay

  5. To save your georeferenced image, in the Data tab, right click the image and press Save As.
  6. Select the toposheet under the data list. Go to the description and look for the entry next to Projection. You’ll see that the projection system is now assigned.

  7. Once completed, a new toposheet will appear in the data list. To open it, double-click on it. As you move your cursor on the map you should see that the Lat/Long values have changed to real-world values.

Congratulations, you have just georeferenced a map in SAGA GIS!

Then you can load this image and use it to determining the precise situation occupied by a given object in space, according to its latitude, longitude, and height coordinates. Now that georeferencing is enabled in your map, you may digitize features into layers and it will store information that describes their mapping onto a geographic coordinate system of latitude and longitude. Since all design layers will have the same georeferencing information, you may edit each design layer, if needed and perform a geospatial analysis.

Georeferencing Google Earth Imagery

The process for georeferencing google earth imagery is very similar to georeferencing a historical map or topo sheet. The main differences are as follows:

  • Instead of using graticles for the GCP locations, use the points you created in google earth when collecting the image
  • Google earth uses the WGS84 Datum and the Equidistant Cylindrical (Plate Caree) Projection. Make sure to use these when defining a projection.
  • Google Earth imagery is NOT orthorectified. If you have any points of known location you can use as GCPs, you may want to, as well as a comparison with LANDSAT imagery if possible.


  1. Open your saved image into SAGA software, for that go to File> Open. Change the file type to All files, then select your Google Earth image. In our case file name is “Georefrence.jpg”.

  2. Now select the Thumbnail image and click on Add to Map'. The image will be displayed on the Map window.

  3. The image is missing the projection coordinate system, if you click on the description tab you will notice that. Google Earth is on WGS 84 projection.

  4. Click on the Geoprocessing > Projection > Georeferencing > Create Reference Points'. Then Create Reference Points window Opens, click Okay to edit the GCP (Ground Control Points).

  5. Select the Action button and click on a reference point that is on the image. Create Reference point window opens, fill X and Y value using the list for the 4 placemarks you added in Google Earth. Note, X is the longitude and Y is the latitude and then Press Okay to register the point. If you notice on the description tab, you will see registered coordinates. Do this for your 3 other points.

  6. To assign the coordinate system, first of all, check off the “Create Reference Points” and then press Okay. Now, go to the Projection > Set Coordinate Reference System. As we have already taken the WGS 84 coordinate system, you just need to assign the GRID object. Select the Georeference file that we are working on this tutorial, then press Okay.

  7. Now we need to rectify the image.Go to Geoprocessing > Georeferencing > Rectify Grid. Select the “reference points” under Reference Points (original) and under the Grids assign both the column. You can select the sampling technique. Then press Okay, which will add the new rectified image on the manager window.

You will notice the new image is added on the Manager window, right-click the image and click Add to Map. This is your rectified georeferenced image.

Transformations and Interpolation

Transformations

Because images obtained from aerial photography may be distorted, often it is necessary to apply a Transformation during the georeferencing process. The relevant coordinate transforms are typically stored within the image file (GeoPDF and GeoTIFF are examples), though there are many possible mechanisms for implementing georeferencing. Different transformations are available at the following transformations are available in SAGA GIS.

Figure 22: Transformations
Triangulation

There is no documentation as to which transformation this represents located anywhere online or otherwise

Spline

Spline transformations are optimized for local accuracy at the expense of global accuracy. In a spline transformation, source and target control points are mapped to each other exactly, while pixels that are further away have greater chance of inaccuracy.

This transformation, known as a "rubber sheet" transformation, is of greatest use when the exact location of certain points is of high importance.

Spline transformations require a minimum of 10 GCPs, and adding more points increases the accuracy of a spline transformation

Affine

Affine is a linear transformation that can scale, translate, rotate, and skew an image. An affine transformation generally maintains straight lines, with squares and rectangles becoming parallelograms.

An affine transformation requires at least 3 GCPs, with each additional GCP introducing additional error. However, inaccurate positioning of GCPs has a greater impact on inaccuracy than additional GCPs, therefore more than 3 GCPs should be used.

First Order Polynomial

This option represents similarity transformations, which are similar to affine transformations in that they are linear, 1st order transformations. however, unlike affine translations, similarity transformations are unable to either independently scale the axis or apply any skew. This is useful for the digitization of "as built" schematics.

A similarity transformation requires 2 GCPs. Additional GCPs will produce RMS error

Second Order Polynomial

Second order polynomial transformations, or quadratic transformations, begin to introduce curvature into the shape of the transformed image a 2nd order polynomial transformation applies a simple global curvature to the raster. Source

A second order polynomial requires 6 GCPs

Third Order Polynomial

Third order polynomial transformations, or cubic transformations, introduce more complex curvature into the shape of a transformed rasterm citation.

A third-order polynomial transformation requires 10 GCPs.

Polynomial, Order

This setting allows you to input a custom order for your polynomial transformation, increasing the complexity of the curve produced

Resampling

When a geometric transformation is applied to a raster, the cells of the input and output rasters rarely line up. To assign values to each output cell, an interpolative algorithm is applied to the input raster, which then assigns values to the initially-empty cells of the output raster. There are 4 methods of interpolation available for resampling in SAGA GIS.

Nearest Neighbour

Nearest Neighbour assigns to the cell of the output raster the closest cell on the input raster to the corresponding output raster cell.

Values in the input raster directly correspond to values in the output raster. there are no changes made to any input raster values.

This method is suitable for nominal and ordinal data, as if the input raster is entirely integer, so too will the output raster. As such, catergories and classes are maintained

Bilinear Interpolation

Bilinear interpolation assigns to the output raster the average of the 4 nearest cells on the input raster to the corresponding output raster call. the average value is weighted to account for distance, with closer cells having relatively more influence than more distant cells.

Bilinear interpolation is valuable for continuous data as it produces a much smoother surface than Nearest Neighbour or Bicubic Spline interpolation.


Bicubic Spline Interpolation

Bicubic Spline interpolation, also known as cubic convolution, assigns to the output raster the distance-weighted average of the nearest 16 cells of the input raster to the corresponding output raster cell.

As more cells are included in the weighted average, the results are sharper and therefore more suited to satelite and aerial photography.

For the same reasons as Bilinear Interpolation, Bicubic Spline interpolation should not be used for categorical data.

Source.

B-Spline Interpolation

B-spline interpolation makes use of a sequence of increasingly fine-scale bicubic functions to approximate the function of a single B-spline function. This functions similarly to B-spline interpolation, but is more computationally efficient. Source

Summary

In this exercise, you applied many well-distributed control points of previously known locations to georeference an image that did not have geospatial information embedded in it. It allowed you to define the existence of a raster image in relation to physical geographic space, making it eligible for geospatial analysis. You also learned how rectification, also known as geo-referencing, works and how the alignment of an image is made using location coordinates in a spatial referencing system. Sometimes, the when an image does not properly align with other data and requires a transformation in order to be used in conjunction with existing data. Now that you are familiar with this technique, you should study the effects of various transformations available in SAGA GIS and learn how to save georeferencing information with the raster or as control points in a text file for reuse. We hope that this practical case taught you the importance and relevance of this geoprocessing technique to contemporary applications in cartographic and photographic management.