Skip to main content
Transform the Spatial Reference System / Coordinate Reference System of A, from SourceCRS to TargetCRS. If the SourceCRS is not specified, CRS will be fetched from the geometry using ST_SRID. Since v1.9.0, Sedona supports multiple CRS formats including EPSG codes, WKT1, WKT2, PROJ strings, and PROJJSON. Grid files for high-accuracy datum transformations are also supported.
For comprehensive details on supported CRS formats, grid file usage, and more examples, see CRS Transformation.

Signatures

Parameters

A
Geometry
required
The input geometry.
SourceCRS
String
The source coordinate reference system (e.g., "EPSG:4326").
TargetCRS
String
required
The target coordinate reference system (e.g., "EPSG:3857").

Return type

The resulting geometry.

Example

ST_Transform