ST_ASEWKB
functionsupportedCore SQL functionsGiven a value of type GEOGRAPHY or GEOMETRY, return the binary representation of that value in EWKB (extended well-known binary) format.
Syntax
ST_ASEWKB( <geography_or_geometry_expression> )
Parameters
| Name | Required | Description |
|---|---|---|
geography_or_geometry_expression | required | The argument must be an expression of type GEOGRAPHY or GEOMETRY. |
Returns
A value of type BINARY.
Usage notes
- For GEOGRAPHY objects, the SRID in the return value is always 4326. See the note on EWKT handling.
- To return the output in WKB format, use ST_ASWKB instead.