ST_AsBinary

This section contains reference documentation for the ST_AsBinary function.

Returns the WKB representation of the geometry.

Signature

ST_AsBinary(geometryObject)

Usage Examples

select ST_AsBinary(
    STPOINT(-122, 37)
) AS value
from ignoreMe 
select ST_AsBinary(
    ST_GeogFromText('LINESTRING (30 10, 10 30, 40 40)')
) AS value
from ignoreMe 

Last updated