arrow-left

All pages
gitbookPowered by GitBook
1 of 1

Loading...

ST_AsBinary

This section contains reference documentation for the ST_AsBinary function.

Returns the WKB representation of the geometry.

hashtag
Signature

ST_AsBinary(geometryObject)

hashtag
Usage Examples

value
value
select ST_AsBinary(
    STPOINT(-122, 37)
) AS value
from ignoreMe 

0000000001c05e8000000000004042800000000000

select ST_AsBinary(
    ST_GeogFromText('LINESTRING (30 10, 10 30, 40 40)')
) AS value
from ignoreMe 

000000000200000003403e00000000000040240000000000004024000000000000403e00000000000040440000000000004044000000000000