Skip to main content
The Geography type in Sedona represents spatial objects on a spherical (geodesic) model of the Earth. Unlike the planar Geometry type, distance, area, and other measurements performed on Geography objects account for the curvature of the Earth and return results in real-world units (e.g., meters).

Geography Constructors

These functions create geography objects from various formats.
FunctionReturn typeDescription
ST_GeogFromEWKBGeographyConstruct a Geography from EWKB Binary. This function is an alias of ST_GeogFromWKB.
ST_GeogFromEWKTGeographyConstruct a Geography from OGC Extended WKT.
ST_GeogFromGeoHashGeographyCreate Geography from geohash string and optional precision
ST_GeogFromWKBGeographyConstruct a Geography from WKB Binary.
ST_GeogFromWKTGeographyConstruct a Geography from WKT. If SRID is not set, it defaults to 0 (unknown).
ST_GeogToGeometryGeometryThis function constructs a planar Geometry object from a Geography. While Sedona makes every effort to preserve the original spatial object, the conversion is not always exact because Geography and…
ST_GeomToGeographyGeographyThis function constructs a Geography object from a planar Geometry. This function is intended for geometries defined in a Geographic Coordinate Reference System (CRS), most commonly WGS84 (EPSG:432…

Geography Functions

These functions operate on geography type objects.
FunctionReturn typeDescription
ST_AsEWKTStringReturn the Extended Well-Known Text representation of a geography. EWKT is an extended version of WKT which includes the SRID of the geography. The format originated in PostGIS but is supported by …
ST_EnvelopeGeographyThis function returns the bounding box (envelope) of A. It’s important to note that the bounding box is calculated using a cylindrical topology, not a spherical one. If the envelope crosses the ant…