GEOGRAPHY data type to the Well-Known Binary (WKB) format for geographic objects.
Syntax
Parameters
Return Type
ST_ASBINARY returns a value of type BYTEA.
Example
The following query usesST_GEOGFROMTEXT to create a GEOGRAPHY object from the WKT representation of a Point at specified longitude and latitude coordinates, and then uses ST_ASBINARY to convert it to WKB representation:
Rows: 1Execution time: 8.38ms