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

# Spatial functions overview

* [Native spatial functions](/documents/4.2/sql-reference/sql-functions/spatial-functions/native-spatial-functions.md) · Functions that accept or return native spatial values, with signatures for both types where supported.
* [Legacy spatial functions](/documents/4.2/sql-reference/sql-functions/spatial-functions/legacy-spatial-functions.md) · Existing functions and overloads that work with `VARCHAR`-encoded shapes.

Choose the spatial SQL type according to the coordinate model and the functions you need.

| SQL type | Coordinate model | WKT constructor |
| - | - | - |
| [GEOGRAPHY](/documents/4.2/sql-reference/data-types/spatial-types/GEOGRAPHY.md) | Spherical longitude and latitude in `OGC:CRS84` | `ST_GeogFromText(wkt)` |
| [GEOMETRY](/documents/4.2/sql-reference/data-types/spatial-types/GEOMETRY.md) | Planar coordinates with an explicit CRS | `ST_GeomFromText(wkt, crs)` |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.