# Spatial Stages

Spatial stages determine the relationship between a location and areas or points of interest. They perform a variety of spatial calculations, such as area, union, intersection, point in polygon, and more.

## Components

The Spectrum Spatial Module includes the following spatial stages:

**Closest Site**– Determines which sites are closest to a given location.**Find Nearest**– Locates the points of interest (POI) that are nearest to a given location.**Point In Polygon**– Determines whether a location is within a specified area.**Query Spatial Data**– Queries a spatial database using MISQL functions that can, for example, search for a point within a given polygon.**Read Spatial Data**– Accesses spatial data in a variety of commonly-used spatial data formats using MISQL functions.**Spatial Calculator**– Performs string and geometry conversions as well a variety of calculations on spatial data, such as determining the area of a polygon or distance between two points.**Spatial Union**– Returns a geometry object that represents the union of two input geometry objects.**Write Spatial Data**– Inserts data into a named table, or update data in a named table, as the output of a job. Also deletes data.