> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cockroachlabs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Spatial Data Overview

CockroachDB supports efficiently storing and querying spatial data.

See the links below for more information about how to use CockroachDB for spatial use cases.

## Getting started

* [Install CockroachDB](https://docs.cockroachlabs.com/docs/v24.2/install-cockroachdb-mac)
* [Spatial tutorial](https://docs.cockroachlabs.com/docs/v24.2/spatial-tutorial)

## Migrating spatial data into and out of CockroachDB

* [Migrate from Shapefiles](https://docs.cockroachlabs.com/docs/v24.2/migrate-from-shapefiles)
* [Migrate from GeoJSON](https://docs.cockroachlabs.com/docs/v24.2/migrate-from-geojson)
* [Migrate from GeoPackage](https://docs.cockroachlabs.com/docs/v24.2/migrate-from-geopackage)
* [Migrate from OpenStreetMap](https://docs.cockroachlabs.com/docs/v24.2/migrate-from-openstreetmap)
* [Export Spatial Data](https://docs.cockroachlabs.com/docs/v24.2/export-spatial-data)

## Reference

* [Spatial indexes](https://docs.cockroachlabs.com/docs/v24.2/spatial-indexes)
* [Spatial and GIS Glossary of Terms](https://docs.cockroachlabs.com/docs/v24.2/architecture/glossary)
* [Known Limitations](https://docs.cockroachlabs.com/docs/v24.2/known-limitations#spatial-support-limitations)
* [Spatial functions](https://docs.cockroachlabs.com/docs/v24.2/functions-and-operators#spatial-functions)
* [Client library compatibility](https://docs.cockroachlabs.com/docs/v24.2/query-spatial-data#compatibility)

### Spatial objects

* [POINT](https://docs.cockroachlabs.com/docs/v24.2/point)
* [LINESTRING](https://docs.cockroachlabs.com/docs/v24.2/linestring)
* [POLYGON](https://docs.cockroachlabs.com/docs/v24.2/polygon)
* [MULTIPOINT](https://docs.cockroachlabs.com/docs/v24.2/multipoint)
* [MULTILINESTRING](https://docs.cockroachlabs.com/docs/v24.2/multilinestring)
* [MULTIPOLYGON](https://docs.cockroachlabs.com/docs/v24.2/multipolygon)
* [GEOMETRYCOLLECTION](https://docs.cockroachlabs.com/docs/v24.2/geometrycollection)

### Data representations

* [Well known text](https://docs.cockroachlabs.com/docs/v24.2/well-known-text)
* [Well known binary](https://docs.cockroachlabs.com/docs/v24.2/well-known-binary)
* [GeoJSON](https://docs.cockroachlabs.com/docs/v24.2/geojson)
* [SRID 4326 - longitude and latitude](https://docs.cockroachlabs.com/docs/v24.2/srid-4326)

### Spatial functions

In addition to the [generated reference documentation for spatial functions](https://docs.cockroachlabs.com/docs/v24.2/functions-and-operators#spatial-functions), we have written additional documentation for the following functions, including examples:

* [`ST_Contains`](https://docs.cockroachlabs.com/docs/v24.2/st_contains)
* [`ST_ConvexHull`](https://docs.cockroachlabs.com/docs/v24.2/st_convexhull)
* [`ST_CoveredBy`](https://docs.cockroachlabs.com/docs/v24.2/st_coveredby)
* [`ST_Covers`](https://docs.cockroachlabs.com/docs/v24.2/st_covers)
* [`ST_Disjoint`](https://docs.cockroachlabs.com/docs/v24.2/st_disjoint)
* [`ST_Equals`](https://docs.cockroachlabs.com/docs/v24.2/st_equals)
* [`ST_Intersects`](https://docs.cockroachlabs.com/docs/v24.2/st_intersects)
* [`ST_Overlaps`](https://docs.cockroachlabs.com/docs/v24.2/st_overlaps)
* [`ST_Touches`](https://docs.cockroachlabs.com/docs/v24.2/st_touches)
* [`ST_Union`](https://docs.cockroachlabs.com/docs/v24.2/st_union)
* [`ST_Within`](https://docs.cockroachlabs.com/docs/v24.2/st_within)

## See also

* [Introducing Distributed Spatial Data in CockroachDB](https://www.cockroachlabs.com/blog/spatial-data/) (blog post)
* [Using GeoServer with CockroachDB](https://docs.cockroachlabs.com/docs/v24.2/geoserver)
