Skip to main content
Converts shapes of the GEOGRAPHY data type to the extended Well-Known Binary (EWKB) format using Spatial Reference Identifier (SRID) 4326, which corresponds to the WGS84 coordinate system.

Syntax

Parameters

Return Type

ST_ASEWKB returns a value of type BYTEA.

Example

The following code example creates a GEOGRAPHY object from the WKT representation of a Point at specified longitude and latitude coordinates and converts it to EWKB format:

Rows: 1Execution time: 5.85ms