> ## 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 signatures

> Lists the native GEOGRAPHY and GEOMETRY overloads, function IDs, supported inputs, and runtime behavior.

See [GEOGRAPHY](/documents/4.2/sql-reference/data-types/spatial-types/GEOGRAPHY.md) and [GEOMETRY](/documents/4.2/sql-reference/data-types/spatial-types/GEOMETRY.md) for type-level behavior.

Use these tables to compare overloads by parameter type, return type, and supported geometry. Select a function for its syntax and examples. The function ID identifies the overload used for FE-to-BE dispatch.

## Common behavior

* Native constructors and serializers support all seven two-dimensional OGC families: `POINT`, `LINESTRING`, `POLYGON`, `MULTIPOINT`, `MULTILINESTRING`, `MULTIPOLYGON`, and `GEOMETRYCOLLECTION`. They also support typed `EMPTY` values and empty children.
* A `NULL` argument produces `NULL`. Constructors also return `NULL` for malformed WKT/WKB or unsupported constructor parameters.
* Native compute functions require an XY value and a valid descriptor. Unsupported families, dimensions, or descriptors produce a controlled error unless a row-specific rule below says that `EMPTY` produces `NULL`.
* `GEOGRAPHY` and `GEOMETRY` are distinct logical types. Mixed-kind calls have no overload and are rejected.
* `GEOGRAPHY` uses `OGC:CRS84`, spherical edges, longitude/latitude coordinate order, and SRID 4326. `GEOMETRY` uses planar semantics and the explicit CRS stored in its descriptor. Use [ST\_Transform](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_transform.md) for the supported `GEOMETRY` reprojections.

## Constructors

| Function | Parameters | Return type | Usage notes | Function ID |
| - | - | - | - | -: |
| [ST\_GeogFromText](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_geogfromtext.md) | `VARCHAR wkt` | `GEOGRAPHY` | All seven 2D families and `EMPTY` · Uses the native `OGC:CRS84` spherical descriptor and SRID 4326. | 120020 |
| [ST\_GeogFromText](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_geogfromtext.md) | `VARCHAR wkt, INT srid` | `GEOGRAPHY` | All seven 2D families and `EMPTY` · `srid` must be 4326; the result uses the native `OGC:CRS84` spherical descriptor. | 120021 |
| [ST\_GeomFromText](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_geometryfromtext.md) | `VARCHAR wkt, VARCHAR crs` | `GEOMETRY` | All seven 2D families and `EMPTY` · `crs` must be a non-empty string literal and becomes the planar result descriptor. There is no default CRS. | 120022 |
| [ST\_GeogFromWKB](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_geogfromwkb.md) | `VARBINARY wkb` | `GEOGRAPHY` | All seven 2D families and `EMPTY`; either WKB byte order · Uses the native `OGC:CRS84` spherical descriptor and SRID 4326. EWKB is unsupported. | 120030 |
| [ST\_GeogFromWKB](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_geogfromwkb.md) | `VARBINARY wkb, INT srid` | `GEOGRAPHY` | All seven 2D families and `EMPTY`; either WKB byte order · `srid` must be 4326; the result uses the native `OGC:CRS84` spherical descriptor. EWKB is unsupported. | 120031 |
| [ST\_GeomFromWKB](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_geomfromwkb.md) | `VARBINARY wkb, VARCHAR crs` | `GEOMETRY` | All seven 2D families and `EMPTY`; either WKB byte order · `crs` must be a non-empty string literal and becomes the planar result descriptor. EWKB and Z/M ordinates are unsupported. | 120032 |

Geography coordinates must satisfy the supported longitude and latitude ranges. Geometry constructors do not reinterpret coordinates and do not transform them into another CRS. See [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](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_geometryfromtext.md), and [ST\_GeomFromWKB](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_geomfromwkb.md).

## Serializers

| Function | Parameters | Return type | Usage notes | Function ID |
| - | - | - | - | -: |
| [ST\_AsText](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_astext.md) | `GEOGRAPHY geography` | `VARCHAR` | Emits WKT without changing coordinates or the input descriptor. | 120040 |
| [ST\_AsText](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_astext.md) | `GEOMETRY geo` | `VARCHAR` | Emits WKT without changing coordinates or the input descriptor. | 120041 |
| [ST\_AsWKT](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_astext.md) | `GEOGRAPHY geography` | `VARCHAR` | Alias of the native `ST_AsText(GEOGRAPHY)` behavior. | 120050 |
| [ST\_AsWKT](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_astext.md) | `GEOMETRY geo` | `VARCHAR` | Alias of the native `ST_AsText(GEOMETRY)` behavior. | 120051 |
| [ST\_AsBinary](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_asbinary.md) | `GEOGRAPHY geography` | `VARBINARY` | Emits WKB. Logical kind, CRS, and edge semantics remain type metadata and are not encoded as EWKB. | 120060 |
| [ST\_AsBinary](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_asbinary.md) | `GEOMETRY geometry` | `VARBINARY` | Emits WKB. Logical kind and CRS remain type metadata and are not encoded as EWKB. | 120061 |
| [ST\_AsWKB](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_asbinary.md) | `GEOGRAPHY geography` | `VARBINARY` | Alias of the native `ST_AsBinary(GEOGRAPHY)` behavior. | 120070 |
| [ST\_AsWKB](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_asbinary.md) | `GEOMETRY geometry` | `VARBINARY` | Alias of the native `ST_AsBinary(GEOMETRY)` behavior. | 120071 |

See [ST\_AsText and ST\_AsWKT](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_astext.md) and [ST\_AsBinary and ST\_AsWKB](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_asbinary.md).

## Initial compute functions

| Function | Parameters | Return type | Usage notes | Function ID |
| - | - | - | - | -: |
| [ST\_X](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_x.md) | `GEOGRAPHY point` | `DOUBLE` | longitude in degrees · Non-empty XY `POINT` · `NULL` propagates. `EMPTY`, non-`POINT`, or an unsupported descriptor is an error. | 120080 |
| [ST\_X](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_x.md) | `GEOMETRY point` | `DOUBLE` | input CRS units · Non-empty XY `POINT` · `NULL` propagates. `EMPTY`, non-`POINT`, or an unsupported descriptor is an error. | 120081 |
| [ST\_Y](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_y.md) | `GEOGRAPHY point` | `DOUBLE` | latitude in degrees · Non-empty XY `POINT` · `NULL` propagates. `EMPTY`, non-`POINT`, or an unsupported descriptor is an error. | 120090 |
| [ST\_Y](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_y.md) | `GEOMETRY point` | `DOUBLE` | input CRS units · Non-empty XY `POINT` · `NULL` propagates. `EMPTY`, non-`POINT`, or an unsupported descriptor is an error. | 120091 |
| [ST\_GeometryType](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_geometrytype.md) | `GEOGRAPHY geography` | `VARCHAR` | family name · Every supported XY family · `NULL` propagates. A typed `EMPTY` keeps its family name. Unsupported dimensions or descriptors are errors. | 120170 |
| [ST\_GeometryType](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_geometrytype.md) | `GEOMETRY geometry` | `VARCHAR` | family name · Every supported XY family · `NULL` propagates. A typed `EMPTY` keeps its family name. Unsupported dimensions or descriptors are errors. | 120171 |
| [ST\_Distance](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_distance.md) | `GEOGRAPHY lhs, GEOGRAPHY rhs` | `DOUBLE` | meters · XY `POINT`/`POINT`, or `POINT` with `LINESTRING`/`MULTILINESTRING`, under the spherical CRS84 contract · `NULL` or `EMPTY` produces `NULL`. Unsupported families, dimensions, descriptors, or ambiguous antipodal line segments are errors. | 120180 |
| [ST\_Distance](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_distance.md) | `GEOMETRY lhs, GEOMETRY rhs` | `DOUBLE` | input CRS units · XY `POINT`/`POINT`, or `POINT` with `LINESTRING`/`MULTILINESTRING`, with matching descriptors · `NULL` or `EMPTY` produces `NULL`. Unsupported families, dimensions, or incompatible descriptors are errors. | 120181 |
| [ST\_DWithin](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_dwithin.md) | `GEOGRAPHY point_or_line, GEOGRAPHY line_or_point, DOUBLE distance` | `BOOLEAN` | `distance` in meters · XY `POINT` with `LINESTRING`/`MULTILINESTRING`, in either order · Inclusive threshold. `NULL` propagates; `EMPTY` returns `false`. The threshold must be finite and nonnegative. | 120230 |
| [ST\_DWithin](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_dwithin.md) | `GEOMETRY point_or_line, GEOMETRY line_or_point, DOUBLE distance` | `BOOLEAN` | `distance` in input CRS units · XY `POINT` with `LINESTRING`/`MULTILINESTRING`, in either order, with matching descriptors · Inclusive threshold. `NULL` propagates; `EMPTY` returns `false`. The threshold must be finite and nonnegative. | 120231 |

See [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\_Distance](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_distance.md), and [ST\_DWithin](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_dwithin.md).

## Containment predicates

| Function | Parameters | Return type | Usage notes | Function ID |
| - | - | - | - | -: |
| [ST\_Contains](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_contains.md) | `GEOGRAPHY polygon, GEOGRAPHY point` | `BOOLEAN` | Returns `true` only for a point in the polygon interior. | 120190 |
| [ST\_Contains](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_contains.md) | `GEOMETRY polygon, GEOMETRY point` | `BOOLEAN` | Returns `true` only for a point in the polygon interior. | 120191 |
| [ST\_Within](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_within.md) | `GEOGRAPHY point, GEOGRAPHY polygon` | `BOOLEAN` | Converse of `ST_Contains`; excludes the boundary. | 120200 |
| [ST\_Within](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_within.md) | `GEOMETRY point, GEOMETRY polygon` | `BOOLEAN` | Converse of `ST_Contains`; excludes the boundary. | 120201 |
| [ST\_Covers](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_covers.md) | `GEOGRAPHY polygon, GEOGRAPHY point` | `BOOLEAN` | Includes exterior and interior-ring boundaries. | 120210 |
| [ST\_Covers](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_covers.md) | `GEOMETRY polygon, GEOMETRY point` | `BOOLEAN` | Includes exterior and interior-ring boundaries. | 120211 |
| [ST\_CoveredBy](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_coveredby.md) | `GEOGRAPHY point, GEOGRAPHY polygon` | `BOOLEAN` | Converse of `ST_Covers`; includes the boundary. | 120220 |
| [ST\_CoveredBy](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_coveredby.md) | `GEOMETRY point, GEOMETRY polygon` | `BOOLEAN` | Converse of `ST_Covers`; includes the boundary. | 120221 |

These overloads support an XY `POINT` with a `POLYGON` or `MULTIPOLYGON`. `GEOGRAPHY` evaluates spherical CRS84 edges; `GEOMETRY` evaluates planar edges and requires matching descriptors. `NULL` propagates, while an `EMPTY` input returns `false`. Unsupported families, dimensions, descriptors, and mixed `GEOGRAPHY`/`GEOMETRY` calls are rejected. See [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), and [ST\_CoveredBy](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_coveredby.md).

## Intersection predicate

| Function | Parameters | Return type | Usage notes | Function ID |
| - | - | - | - | -: |
| [ST\_Intersects](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_intersects.md) | `GEOGRAPHY lhs, GEOGRAPHY rhs` | `BOOLEAN` | Spherical overlap, containment, and boundary contact return `true`. | 120240 |
| [ST\_Intersects](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_intersects.md) | `GEOMETRY lhs, GEOMETRY rhs` | `BOOLEAN` | Planar overlap, containment, and boundary contact return `true`. | 120241 |

These overloads support XY `POLYGON` and `MULTIPOLYGON` values. `GEOMETRY` inputs require matching descriptors. `NULL` propagates, while an `EMPTY` input returns `false`. Unsupported families, collections, and mixed native logical types are rejected. See [ST\_Intersects](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_intersects.md).

## Measurements and properties

| Function | Parameters | Return type | Usage notes | Function ID |
| - | - | - | - | -: |
| [ST\_Area](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_area.md) | `GEOGRAPHY value` | `DOUBLE` | square meters · Sums polygon area recursively; holes subtract; lower dimensions contribute zero. | 120250 |
| [ST\_Area](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_area.md) | `GEOMETRY value` | `DOUBLE` | squared input CRS units · Sums polygon area recursively; holes subtract; lower dimensions contribute zero. | 120251 |
| [ST\_Length](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_length.md) | `GEOGRAPHY value` | `DOUBLE` | meters · Sums line length recursively; points and polygons contribute zero. | 120260 |
| [ST\_Length](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_length.md) | `GEOMETRY value` | `DOUBLE` | input CRS units · Sums line length recursively; points and polygons contribute zero. | 120261 |
| [ST\_Perimeter](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_perimeter.md) | `GEOGRAPHY value` | `DOUBLE` | meters · Sums exterior and interior polygon ring lengths recursively. | 120270 |
| [ST\_Perimeter](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_perimeter.md) | `GEOMETRY value` | `DOUBLE` | input CRS units · Sums exterior and interior polygon ring lengths recursively. | 120271 |
| [ST\_Centroid](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_centroid.md) | `GEOGRAPHY value` | `GEOGRAPHY` | POINT with the input descriptor. · Uses the highest non-empty dimension and spherical size weighting. | 120280 |
| [ST\_Centroid](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_centroid.md) | `GEOMETRY value` | `GEOMETRY` | POINT with the input descriptor. · Uses the highest non-empty dimension and planar size weighting. | 120281 |
| [ST\_IsValid](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_isvalid.md) | `GEOGRAPHY value` | `BOOLEAN` | Uses spherical validity, including overlapping MultiPolygon interiors. | 120290 |
| [ST\_IsValid](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_isvalid.md) | `GEOMETRY value` | `BOOLEAN` | Uses robust planar topology validity. | 120291 |

All overloads accept the seven XY OGC families and recurse through `MULTI*` and `GEOMETRYCOLLECTION` where applicable. `NULL` propagates. Measurements return zero for `EMPTY`; `ST_Centroid` returns `POINT EMPTY`; `ST_IsValid` returns `true`. Topology-invalid readable values return `false` only from `ST_IsValid`; measurements and centroid reject them. Malformed WKB and unsupported dimensions or descriptors are errors.

Spherical polygon rings are orientation-independent and normalized to their smaller region; a single ring does not represent more than a hemisphere. See [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), [ST\_Centroid](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_centroid.md), and [ST\_IsValid](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_isvalid.md).

## CRS metadata and transformation

| Function | Parameters | Return type | Usage notes | Function ID |
| - | - | - | - | -: |
| [ST\_SRID](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_srid.md) | `GEOMETRY value` | `INT` | Returns `NULL` when there is no numeric EPSG mapping. · Reads the numeric EPSG mapping from the descriptor; does not transform coordinates. | 120300 |
| [ST\_SetSRID](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_setsrid.md) | `GEOMETRY value, INT target_srid` | `GEOMETRY` | Target EPSG descriptor. · Changes metadata only; WKB and coordinates are unchanged. | 120305 |
| [ST\_Transform](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_transform.md) | `GEOMETRY value, INT target_srid` | `GEOMETRY` | Target EPSG descriptor. · Reprojects XY coordinates between EPSG:4326 and EPSG:3857 using Web Mercator formulas. | 120310 |

The two target SRIDs must be FE-foldable constants equal to 4326 or 3857. Source CRS must be EPSG:4326, EPSG:3857, or OGC:CRS84. `ST_Transform` handles all seven XY OGC families and collections; `NULL` propagates and `EMPTY` stays empty. See [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), and [ST\_Transform](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_transform.md).

## Legacy compatibility

See [Legacy spatial functions](/documents/4.2/sql-reference/sql-functions/spatial-functions/legacy-spatial-functions.md) for the full list of functions that use the existing `VARCHAR` shape encoding.

| Function | Parameters | Return type | Usage notes | Function ID |
| - | - | - | - | -: |
| [ST\_X](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_x.md#legacy-overloads) | `VARCHAR point` | `DOUBLE` | — | 120001 |
| [ST\_Y](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_y.md#legacy-overloads) | `VARCHAR point` | `DOUBLE` | — | 120002 |
| [ST\_AsText](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_astext.md#legacy-overloads) | `VARCHAR shape` | `VARCHAR` | — | 120004 |
| [ST\_AsWKT](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_astext.md#legacy-overloads) | `VARCHAR shape` | `VARCHAR` | — | 120005 |
| [ST\_GeometryFromText](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_geometryfromtext.md#legacy-overloads) | `VARCHAR wkt` | `VARCHAR` | — | 120006 |
| [ST\_GeomFromText](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_geometryfromtext.md#legacy-overloads) | `VARCHAR wkt` | `VARCHAR` | — | 120007 |
| [ST\_Contains](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_contains.md#legacy-overloads) | `VARCHAR shape1, VARCHAR shape2` | `BOOLEAN` | — | 120014 |

## Upgrade and reference-test contract

For a rolling upgrade, upgrade BEs before FEs. Native scalar functions use the ordinary stable function-ID dispatch and do not introduce a separate GEO version gate. The coverage window registry is described below. A newer FE with an older BE is not a supported upgrade order.

The contract is enforced by focused FE analyzer tests for overload resolution, return types, legacy compatibility, and function IDs, and by BE registry tests for every native ID. Existing BE function tests cover constant, nullable, varying, `EMPTY`, malformed-input, family, dimension, CRS, and descriptor behavior.

## Polygon overlays

Native XY polygons and multipolygons with compatible CRS; Cartesian semantics in both 4326 and 3857. NULL propagates. For `ST_Union`, `ST_Difference`, and `ST_SymDifference`, one component returns POLYGON, multiple return MULTIPOLYGON, and empty returns POLYGON EMPTY. Invalid topology is an error. See the linked pages for precision and resource limits.

`ST_Intersection` also preserves shared edges and isolated contact points, returning line or point families when no area is present, or GEOMETRYCOLLECTION for mixed dimensions. Parts covered by higher-dimensional output are not repeated; disjoint inputs return POLYGON EMPTY.

| Function | Parameters | Return type | Usage notes | Function ID |
| - | - | - | - | -: |
| [ST\_Intersection](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_intersection.md) | `GEOMETRY lhs, GEOMETRY rhs` | `GEOMETRY` | — | 120341 |
| [ST\_Union](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_union.md) | `GEOMETRY lhs, GEOMETRY rhs` | `GEOMETRY` | — | 120351 |
| [ST\_Difference](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_difference.md) | `GEOMETRY lhs, GEOMETRY rhs` | `GEOMETRY` | — | 120361 |
| [ST\_SymDifference](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_symdifference.md) | `GEOMETRY lhs, GEOMETRY rhs` | `GEOMETRY` | — | 120371 |

## Cartesian buffer

Native XY POINT, LINESTRING, POLYGON and their MULTI families; finite signed distance in input CRS units, round approximation, NULL propagation and polygonal EMPTY output. The result preserves CRS. GEOGRAPHY, collections, Z/M and options are unsupported by ST\_Buffer.

| Function | Parameters | Return type | Usage notes | Function ID |
| - | - | - | - | -: |
| [ST\_Buffer](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_buffer.md) | `GEOMETRY geometry, DOUBLE distance` | `GEOMETRY` | — | 120401 |

## Topology preserving simplification

Cartesian XY scalar geometry with preserved families, rings, contacts, typed empty children and CRS. Tolerance uses input coordinate units. GEOGRAPHY, Z/M and cross-row coverage simplification are unsupported.

| Function | Parameters | Return type | Usage notes | Function ID |
| - | - | - | - | -: |
| [ST\_SimplifyPreserveTopology](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_simplifypreservetopology.md) | `GEOMETRY geometry, DOUBLE tolerance` | `GEOMETRY` | — | 120411 |

## H3 cell functions

These overloads require native XY CRS84 GEOGRAPHY for geometry arguments; the cell is a signed BIGINT. See [H3 functions](/documents/4.2/sql-reference/sql-functions/spatial-functions/h3-functions.md) for validity, NULL/EMPTY, fill approximation, and limits.

| Function | Parameters | Return type | Usage notes | Function ID |
| - | - | - | - | -: |
| [H3\_FromGeo](/documents/4.2/sql-reference/sql-functions/spatial-functions/h3-functions.md) | `GEOGRAPHY geography, INT resolution` | `BIGINT` | — | 120500 |
| [H3\_GridDisk](/documents/4.2/sql-reference/sql-functions/spatial-functions/h3-functions.md) | `BIGINT cell, INT k` | `ARRAY<BIGINT>` | — | 120501 |
| [H3\_ToParent](/documents/4.2/sql-reference/sql-functions/spatial-functions/h3-functions.md) | `BIGINT cell, INT resolution` | `BIGINT` | — | 120502 |
| [H3\_ToChildren](/documents/4.2/sql-reference/sql-functions/spatial-functions/h3-functions.md) | `BIGINT cell, INT resolution` | `ARRAY<BIGINT>` | — | 120503 |
| [H3\_Resolution](/documents/4.2/sql-reference/sql-functions/spatial-functions/h3-functions.md) | `BIGINT cell` | `INT` | — | 120504 |
| [H3\_ToBoundary](/documents/4.2/sql-reference/sql-functions/spatial-functions/h3-functions.md) | `BIGINT cell` | `GEOGRAPHY` | — | 120505 |
| [H3\_PolygonToCells](/documents/4.2/sql-reference/sql-functions/spatial-functions/h3-functions.md) | `GEOGRAPHY geography, INT resolution` | `ARRAY<BIGINT>` | — | 120506 |

## Joint coverage simplification (window)

Both overloads process the whole partition jointly and return one XY GEOMETRY per row with the original family and CRS. Parameters must be foldable plan constants; OVER is required. No inner ORDER BY, explicit frame or ordinary aggregate support. See [ST\_CoverageSimplify](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_coveragesimplify.md) for topology, NULL/EMPTY, tolerance and resource limits.

| Function | Parameters | Return type | Usage notes | Function ID |
| - | - | - | - | -: |
| [ST\_CoverageSimplify](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_coveragesimplify.md) | `GEOMETRY geom, DOUBLE tolerance` | `GEOMETRY` | Window function. Requires `OVER`. | — |
| [ST\_CoverageSimplify](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_coveragesimplify.md) | `GEOMETRY geom, DOUBLE tolerance, BOOLEAN simplify_boundary` | `GEOMETRY` | Window function. Requires `OVER`. | — |

GEOGRAPHY overloads are not registered. BE resolves this window function by name and logical argument/result types through the window registry. Upgrade BEs before FEs.


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