This section contains reference documentation for the ST_GeogFromWKB function.
Last updated 2 years ago
Was this helpful?
Returns a geography type object from WKB representation.
ST_GeogFromWKB(wkb)
select STPOINT(-122, 37) AS point, ST_GeogFromWKB( ST_AsBinary(STPOINT(-122, 37)) ) AS value from ignoreMe
00c05e8000000000004042800000000000
80c05e8000000000004042800000000000
select STPOINT(-122, 37, 1) AS point, ST_GeogFromWKB( ST_AsBinary(STPOINT(-122, 37, 1)) ) AS value from ignoreMe
You can create geometry objects in the WKB format using the function.