Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
将原生 GEOMETRY 或 GEOGRAPHY 值序列化为 WKB。
GEOMETRY
GEOGRAPHY
ST_AsWKB
ST_AsBinary
VARBINARY ST_AsBinary(GEOMETRY geometry) VARBINARY ST_AsBinary(GEOGRAPHY geography) VARBINARY ST_AsWKB(GEOMETRY geometry) VARBINARY ST_AsWKB(GEOGRAPHY geography)
EMPTY
NULL
SELECT hex(ST_AsBinary(ST_GeogFromText('POINT (1 2)')));
0101000000000000000000F03F0000000000000040
SELECT hex(ST_AsBinary(ST_GeomFromText('POINT (1 2)', 'EPSG:3857')));