arrow-left

All pages
gitbookPowered by GitBook
1 of 1

Loading...

ST_GeomFromWKB

This section contains reference documentation for the ST_GeomFromWKB function.

Returns a geometry type object from WKB representation.

hashtag
Signature

ST_GeomFromWKB(wkb)

hashtag
Usage Examples

point
value
circle-info

You can create geometry objects in the WKB format using the function.

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

00c05e8000000000004042800000000000

00c05e8000000000004042800000000000

ST_AsBinary