## How We Use Spatial Relationships in GIS

Here are a couple of quotes that all good geographers should remember to better understand the concept of spatial relationships.

“Everything is related to everything else. But near things are more related than distant things.”
-Waldo R. Tobler

“GIS is the nervous system for the planet.”
-Jack Dangermond

-John F Kennedy

What each quote implies is that geography is connected. And this is the same as spatial relationships because they identify how features relate to one another in geographic space.

## Spatial Relationships Types

Adjacency, contiguity, overlap, and proximity are the four ways of describing the relationship between two or more entities.

Adjacency: Adjacency is when two polygon entities are directly connected to each other sharing a boundary.

Contiguity: Contiguity is the relationship between two or more entities when they share an edge such as the 48 contiguous states.

Overlap: An overlap occurs when a single entity shares the same location or partial location of another entity.

Proximity: Finally, proximity is defined as being close enough that you can establish contact with each other without having physical contact with each other.

There is no single rule for what a spatial relationship between two objects is. But the common types of spatial relationships include overlap, proximity, contiguity, and adjacency.

### Spatial Joins and Geographic Relationships

A spatial join is a powerful tool in the GIS world. It allows you to connect or join data together, by sharing layers with the same attributes based on location. In GIS, you can achieve the spatial join through different spatial relationships.

### Topological Relationships in GIS

A topological relationship exists when two objects are each connected to one another. But one object has a specific set of rules that dictate their relationship. When you create topological relationships, it ensures that related features are clean and free of error.

Dangles: When the end vertex of a line does not snap to a point, line, or polygon resulting in a dangle.

Overshoots: Overshoots occur when a line’s endpoint does not snap to another feature resulting in a line extended too far.

Undershoots: Similarly, undershoots occur when a line’s endpoint does not snap to another feature resulting in a line too short.

Slivers: Slivers are often the result of imprecise digitization in GIS which creates undesired gaps in polygons.

Overlaps: Overlaps are unwanted extended polygons or lines that cover each other.

Although data can’t always be free of error, we can set topological relationships to improve data quality. These are all unwanted errors that require data cleanup. But each one has spatial relationships associated with them.

## The Underlying Geography of Spatial Relationships

The term “spatial relationships” refers to the way objects are arranged in relation to one another in geographic space.

For example, we can describe them as adjacency, contiguity, overlap, and proximity.

When we run a tool like spatial join, we are essentially using their spatial relationship with other features in geographic space.

It’s no different for topological relationships. But in this case, we are understanding error based on its spatial relationship as well.