What is Geospatial Analysis?
Topics: GIS concepts; Spatial data; Maps
Why maps?
Maps are a rare type of data visualization. An effective map allows you to connect your data to place: not just “something has happened,” but “something has happened here, not there.” This allows you look for answers and make arguments about how places and your data are connected.
Source: Wikimedia Commons
In 1854, Dr. John Snow mapped cholera deaths in London by location. This revealed deaths clustered around a single water pump, indicating that contaminated water was the source of the outbreak. The data, plus the map, plus the argument fundamentally changed how the spread of disease is understood.
Spatial questions are relevant to every discipline:
- Where do things happen, and where don’t they?
- How does proximity affect data patterns?
- How do patterns change from place to place, or over time?
What makes data geospatial?
Not all data is spatial, but almost any data can be if location is relevant.
| Data type | What it describes | Examples |
|---|---|---|
| Spatial data | where a feature is located | coordinates, addresses, place names |
| Attribute data | what a feature is like | population, land use, temperature |
Geospatial data combines both a location (spatial data) and something meaningful about that location (attribute data).
Question: What data from your own research or classwork might have a spatial dimension that you haven’t explored yet?
Vectors, Rasters, Basemaps
Spatial data comes in two formats. Many maps use both.
Vector data represents distinct features using geometry
- Points: addresses or exact geographic coordinates where something exists or has happened
- Lines: connections between points that represent linear features like roads or rivers
- Polygons: enclosed shapes that represent the boundaries of areas like states, counties, or land parcels
In vector data, attributes are often represented by changing the colors or sizes of the points, lines and polygons. Two lines of different thicknesses could represent rivers of more or less volume. Two polygons colored red and blue could indicate winners of an election.
Raster data represents phenomena as a grid of pixels. Common examples of raster data include satellite imagery, elevation models, and land use classifications.
In rasters, the color of each pixel is its value: for example, an elevation map may use a grayscale color scheme where white represents the highest points, black represents the lowest, and varying shades of gray are used in between.
In addition to the data you place on the map, most maps also include a basemap, or a background layer that serves as a helpful visual reference for your audience.
Projections
One of the most fundamental problems in geography is that the earth is a sphere, but maps are flat. To visualize why this causes a problem, imagine peeling an orange and flattening the peel out on the table. The (more or less) spherical orange peel will tear in some places and condense in others in order to conform with the flat surface. It’s the same with maps: cartographers have devised many different projection systems, or rules according to which the shape of the earth is translated to a flat surface. Some maintain area of landmasses at the expense of shape, direction, and distance, while others prioritize another of those properties.
For practical purposes: the tools we’ll be using today, ArcGIS Online and Leaflet, use the Web Mercator projection. This projection is very good at showing accurate shapes at the local level, but in a global view it significantly distorts and enlarges shapes closer to the poles. All projections have their pros and cons, and Web Mercator is the standard for web mapping for a reason, but it’s important to recognize its weak points.
Quick activity: visit The True Size of… Enter a state or country into the search bar, then click and drag its shape north and south to see how it would look in Web Mercator if it were located in a different part of the world.
You can change the projection you use in ArcGIS Online, but you shouldn’t unless it’s for a specific, good reason.
How (not) to lie with maps
A map is a representation of specific information about a specific part of the world. It’s important to keep that in mind: it’s a representation, not an objective, complete picture. Map creators must make decisions about what data is included, what data is excluded, and how it’s all displayed.
It’s easy to make a bad map. Poor color choices, too much (or too little) data, and improper classification of data can confuse or mislead (intentionally or unintentionally).
When making a map, continually ask yourself these questions, and use your answers to continuously improve:
- What am I trying to argue?
- Does the data displayed on the map make that argument well?
- Does my color scheme enhance or detract from my argument?
- Could my argument be misunderstood?
GIS and Web Mapping Tools
Tools for geospatial analysis fall into two broad categories.
Desktop GIS apps are best when you need to do complex analysis and data processing.
- ArcGIS Pro: The industry standard. Proprietary, but free for ISU students through the ISU GIS Facility.
- QGIS: A free and open source alternative to ArcGIS Pro.
Web mapping tools are best for creating, publishing, and sharing interactive maps.
- ArcGIS Online: The most feature-rich web-mapping platform. ISU students have free accounts through the ISU GIS Facility.
- Leaflet: lightweight JavaScript library for creating maps.
What we’ll be building today
For the rest of this session, I’ll demo two tools and then you’ll get hands-on experience building maps with them.
Activity 1: ArcGIS Online Map Viewer
Find pre-existing data (and create your own), style it on a map, and publish it to ArcGIS Online.
Activity 2: Leaflet (with a template)
Using a pre-made GitHub template, create a simple, interactive map with Leaflet and host it on a GitHub Pages site