HES 505 Fall 2022: Session 6
Matt Williamson
Articulate why we care about space
Describe elements of spatial data
Define a coordinate reference system and its importance
Describe several ways to load spatial data into R
Identify projections in R
Geography uses location to understand how social and physical processes give rise to the environment we experience
Geographic Information Systems provide a structure for storing, visualizing, and describing location data.
GeoComputation and GIScience integrate math, stats, and high-performance computing to move beyond description.
Questions about geographic distribution
Questions about geographic interaction
Questions about geographic change
Questions about geographic association
Questions about causation?
Place: an area having unique physical and human characteristics interconnected with other places
Location: the actual position on the earth’s surface
Sense of Place: the emotions someone attaches to an area based on experiences
Place is location plus meaning
nominal: (potentially contested) place names
absolute: the physical location on the earth’s surface
Cartesian coordinate system
origin (O) = the point at which both measurement systems intersect
Adaptable to multiple dimensions (e.g. z for altitude)
Global Reference Systems (GRS)
Graticule: the grid formed by the intersection of longitude and latitude
The graticule is based on an ellipsoid model of earth’s surface and contained in the datum
The datum describes which ellipsoid to use and the precise relations between locations on earth’s surface and Cartesian coordinates
Geodetic datums (e.g., WGS84): distance from earth’s center of gravity
Local data (e.g., NAD83): better models for local variation in earth’s surface
But maps, screens, and publications are…
Projections describe how the data should be translated to a flat surface
Rely on ‘developable surfaces’
Projection necessarily induces some form of distortion (tearing, compression, or shearing(
Some projections minimize distortion of angle, area, or distance
Others attempt to avoid extreme distortion of any kind
Particularly challenging for raster data
Equal-area for thematic maps
Conformal for presentations
Mercator or equidistant for navigation and distance
RR PackagesIncludes: Datum, ellipsoid, units, and other information (e.g., False Easting, Central Meridian) to further map the projection to the GCS
Not all projections have/require all of the parameters
R stores these data in several formats (EPSG, Proj, and WKT)
Lots of projection info available at spatialreference.org
sf::st_crs() or terra::crs()R has a very specific definition of extent: the rectangular region encompassed by the data
R to access the extentst_bbox() from the sf packageReading layer `nc' from data source
`/Library/Frameworks/R.framework/Versions/4.2/Resources/library/sf/shape/nc.shp'
using driver `ESRI Shapefile'
Simple feature collection with 100 features and 14 fields
Geometry type: MULTIPOLYGON
Dimension: XY
Bounding box: xmin: -84.32385 ymin: 33.88199 xmax: -75.45698 ymax: 36.58965
Geodetic CRS: NAD27
xmin ymin xmax ymax
-84.32385 33.88199 -75.45698 36.58965
xmin ymin xmax ymax
178400 329400 181600 334000
R to access the extentext() from the terra packageResolution: the accuracy that the location and shape of a map’s features can be depicted
Minimum Mapping Unit: The minimum size and dimensions that can be reliably represented at a given map scale.
Map scale vs. scale of analysis
R to access resolutionThematically defined for vector datasets (check your metadata!!)
Using res() in terra
Articulate why we care about space
Describe elements of spatial data
Define a coordinate reference system and its importance
Describe several ways to load spatial data into R
Identify projections in R