Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 649 Bytes

File metadata and controls

36 lines (26 loc) · 649 Bytes
description
This section contains reference documentation for the ST_AsBinary function.

ST_AsBinary

Returns the WKB representation of the geometry.

Signature

ST_AsBinary(geometryObject)

Usage Examples

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