Apache Pinot Docs
Search…
latest
ST_GeogFromWKB
This section contains reference documentation for the ST_GeogFromWKB function.
Returns a geography type object from WKB representation.

Signature

ST_GeogFromWKB(wkb)

Usage Examples

1
select STPOINT(-122, 37) AS point,
2
ST_GeogFromWKB(
3
ST_AsBinary(STPOINT(-122, 37))
4
) AS value
5
from ignoreMe
Copied!
point
value
00c05e8000000000004042800000000000
80c05e8000000000004042800000000000
1
select STPOINT(-122, 37, 1) AS point,
2
ST_GeogFromWKB(
3
ST_AsBinary(STPOINT(-122, 37, 1))
4
) AS value
5
from ignoreMe
Copied!
point
value
80c05e8000000000004042800000000000
80c05e8000000000004042800000000000
You can create geometry objects in the WKB format using the ST_AsBinary function.
Last modified 15d ago
Copy link