Name

st_wkb_read, http_st_wkb — parse and emit OGC Well-Known Binary (WKB) geometry

Synopsis

any st_wkb_read( in wkb any,
  in srid integer);
 
http_st_wkb( in geom any,
  in session any);
 

Description

st_wkb_read parses an OGC Well-Known Binary (WKB) geometry from wkb and returns a Virtuoso geometry value. The input may be a binary string, a varbinary box, or a string-session containing the raw bytes. The optional srid argument overrides the SRID embedded in the WKB header; when omitted, the default SRID is used. The parser accepts both little-endian and big-endian WKB and the extended (EWKB) encoding with Z, M and SRID flags.

http_st_wkb serializes geom as WKB into session, which must be an HTTP output session or a string-session. This is the inverse of st_wkb_read and is intended for use inside VSP/VSPX handlers that stream WKB to a client.

Both functions raise SQL error 41000 with hint GEO16 if the server was built with DISABLE_WKB.


© 1992 - OpenLink Software. All rights reserved.

Making Technology Work for You®