ST_ASWKB
functionsupportedCore SQL functionsGiven a value of type GEOGRAPHY or GEOMETRY, return the binary representation of that value in WKB (well-known binary) format.
Syntax
Use one of the following
ST_ASWKB( <geography_or_geometry_expression> )
ST_ASBINARY( <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
- ST_ASBINARY is an alias for ST_ASWKB.
- To return the output in EWKB format, use ST_ASEWKB instead.