Marie-Hélène Burle
April 26, 2021
Discrete objects
Contain:  - geometry:  shape & location of the objects
    - attributes:  additional variables (e.g. name, year, type)
Common file format:  GeoJSON, shapefile
Examples: countries, roads, rivers, towns
Continuous phenomena or spatial fields
Common file formats:  TIFF, GeoTIFF, NetCDF, Esri grid
Examples: temperature, air quality, elevation, water depth
Grid of equally sized rectangular cells containing values for some variables
Size of cells = resolution
For computing efficiency, rasters do not have coordinates of each cell, but the bounding box & the number of rows & columns
A location on Earth’s surface can be identified by its coordinates & some reference system called CRS
The coordinates (x
, y
) are called longitude & latitude
There can be a 3rd coordinate (z
) for elevation or other measurement—usually a vertical one
And a 4th (m
) for some other data attribute—usually a horizontal measurement
In 3D, longitude & latitude are expressed in angular units (e.g. degrees) & the reference system needed is an angular CRS or geographic coordinate system (GCS)
In 2D, they are expressed in linear units (e.g. meters) & the reference system needed is a planar CRS or projected coordinate system (PCS)
Since the Earth is not a perfect sphere, we use spheroidal models to represent its surface. Those are called geodetic datums
Some datums are global, others local (more accurate in a particular area of the globe, but only useful there)
Examples of commonly used global datums:
An angular CRS contains a datum, an angular unit & references such as a prime meridian (e.g. the Royal Observatory, Greenwich, England)
In an angular CRS or GCS:
Longitude (\(\lambda\)) represents the angle between the prime meridian & the meridian that passes through that location
Latitude (\(\phi\)) represents the angle between the line that passes through the center of the Earth & that location & its projection on the equatorial plane
Longitude & latitude are thus angular coordinates
To create a two-dimensional map, you need to project this 3D angular CRS into a 2D one
Various projections offer different characteristics. For instance:
It is important to choose one with sensible properties for your goals
Examples of projections:
A planar CRS is defined by a datum, a projection & a set of parameters such as a linear unit & the origins
Common planar CRS have been assigned a unique ID called EPSG code which is much more convenient to use
In a planar CRS, coordinates will not be in degrees anymore but in meters (or other length unit)
You can change the projection of your data
Vector data won’t suffer any loss of precision, but raster data will
→ best to try to avoid reprojecting rasters: if you want to combine various datasets which have different projections, reproject vector data instead
Free GIS Data: list of free GIS datasets
Geocomputation with R by Robin Lovelace, Jakub Nowosad & Jannes Muenchow
Spatial Data Science by Edzer Pebesma & Roger Bivand
Spatial Data Science with R by Robert J. Hijmans
Using Spatial Data with R by Claudia A. Engel
An Introduction to Spatial Data Analysis and Visualisation in R by the CDRC
r-spatial by Edzer Pebesma, Marius Appel & Daniel NĂ¼st
R Special Interest Group on using Geographical data and Mapping