Spatial Join
A GIS operation that copies attributes from one layer to another based on where features sit relative to each other, not on a shared field.
Detailed Definition
A spatial join matches features by location instead of by a shared ID. Esri's ArcGIS Pro documentation says the Spatial Join tool "Joins attributes from one or more inputs to another input based on the spatial relationship." The features that receive attributes are the target features; the features that supply them are the join features. The result is written to a new feature class.
How matches are counted
The tool adds a Join_Count field: "The number of join features that match each target feature." There are two join operations:
- Join one to one: when several join features match one target, their attributes are combined with a merge rule such as Sum, Mean, First, or Concatenate. This is the default.
- Join one to many: the target feature is copied once per match, each copy carrying one join feature's attributes.
By default every target feature is kept, matched or not, which Esri calls an outer join. Turning that off keeps only the targets that matched, an inner join.
Match options
The relationship decides what counts as a match. Esri's list includes:
- Intersect, the default
- Within a distance, with a geodesic version for data that "covers a large geographic extent"
- Contains and Completely contains
- Within and Completely within
- Boundary touches and Share a line segment with
- Have their center in, which uses the centroid for polygons
- Closest
Esri also offers "Clementini" versions of Contains and Within. Under them, a feature lying entirely on the other feature's boundary "will not be matched."
Quirks to know
- "If a join feature has a spatial relationship with multiple target features, it will be counted as many times as it is matched."
- With Closest, when two join features are the same distance away, "one of the join features will be randomly selected as the matching feature."
Why it matters in mining claim research
Spatial joins answer everyday questions: which sections a mining claim touches, which mining claims fall inside a withdrawal, which cases sit in a township. BLM most commonly maps mining claim cases to quarter sections, so their polygons share edges with the PLSS grid and with each other. The match option decides whether a shared edge counts, and the counts change with it. The option used belongs in the notes for any result, and the matches should be checked against the legal descriptions. See Buffer Analysis and Geospatial Analysis.
Related Terms
GIS
A geographic information system: software and data that store, analyze, and display information tied to locations on the earth.
Geospatial Analysis
Using location to answer questions across data layers: what overlaps, what is near, what lies where, and what follows the terrain.
Geodatabase
Esri's native format for GIS data: feature classes, tables, rasters, and the rules between them, held in a folder, a single file, or a relational database.
Overlap Analysis
Comparing the boundaries of mining claims with each other and with withdrawals and land status to find where they coincide, then checking the records to see which overlaps are real.
Vector Data
GIS data that stores features as points, lines, and polygons defined by coordinates, each linked to a row of attributes.
Buffer Analysis
A GIS operation that draws polygons a set distance around points, lines, or polygons, used to find what lies within that distance.