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

# Native spatial function index

> Functions that accept or return native spatial values, with signatures for both types where supported.

Use [GEOGRAPHY](/documents/4.2/sql-reference/data-types/spatial-types/GEOGRAPHY.md) for spherical longitude and latitude, or [GEOMETRY](/documents/4.2/sql-reference/data-types/spatial-types/GEOMETRY.md) for planar coordinates with an explicit CRS. The [native spatial function signatures](/documents/4.2/sql-reference/sql-functions/spatial-functions/native-geo-function-overload-matrix.md) shows the supported input families, return types, units, and `NULL` and `EMPTY` behavior.

## Constructors and serialization

* [ST\_GeogFromText](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_geogfromtext.md)
* [ST\_GeogFromWKB](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_geogfromwkb.md)
* [ST\_GeomFromText(wkt, crs)](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_geometryfromtext.md)
* [ST\_GeomFromWKB](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_geomfromwkb.md)
* [ST\_AsText, ST\_AsWKT](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_astext.md)
* [ST\_AsBinary, ST\_AsWKB](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_asbinary.md)

## Properties and measurements

* [ST\_X](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_x.md)
* [ST\_Y](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_y.md)
* [ST\_GeometryType](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_geometrytype.md)
* [ST\_IsValid](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_isvalid.md)
* [ST\_Centroid](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_centroid.md)
* [ST\_Distance](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_distance.md)
* [ST\_Area](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_area.md)
* [ST\_Length](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_length.md)
* [ST\_Perimeter](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_perimeter.md)

## Spatial predicates

* [ST\_Contains](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_contains.md)
* [ST\_Within](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_within.md)
* [ST\_Covers](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_covers.md)
* [ST\_CoveredBy](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_coveredby.md)
* [ST\_Intersects](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_intersects.md)
* [ST\_DWithin](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_dwithin.md)

## Geometry operations

* [ST\_Intersection](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_intersection.md)
* [ST\_Union](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_union.md)
* [ST\_Difference](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_difference.md)
* [ST\_SymDifference](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_symdifference.md)
* [ST\_Buffer](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_buffer.md)
* [ST\_SimplifyPreserveTopology](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_simplifypreservetopology.md)
* [ST\_CoverageSimplify](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_coveragesimplify.md)

## Coordinate reference systems

* [ST\_SRID](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_srid.md)
* [ST\_SetSRID](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_setsrid.md)
* [ST\_Transform](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_transform.md)

## H3 indexing

* [H3 functions](/documents/4.2/sql-reference/sql-functions/spatial-functions/h3-functions.md)


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