メインコンテンツまでスキップ

WKB_PARSE_ERROR エラー・クラス

SQLSTATE: 22023 です。

WKB の解析エラー: 位置で<parseError> <pos>

パラメーター

  • parseError : 発生した解析エラーの種類の説明。
  • pos : 解析エラーが発生した WKB バイナリ文字列内の 1 から始まる位置。

説明

一部の地理空間関数は、入力を解析するときにこのエラーを返す場合があります (これは、既知のバイナリ (WKB) 形式であると想定されます)。 WKBの詳細については、こちらをご覧ください。

SQL
-- Feeding an empty geometry collection in WKB format into the h3_polyfillash3string function (as opposed to a polygon or multipolygon).
> SELECT h3_polyfillash3string(unhex('010700000000'), 8)
[WKB_PARSE_ERROR] Error parsing WKB: Invalid or unsupported type 7 at position 2

-- The input WKB corresponds to a polygon with 5 vertices in the exterior ring, but only 4 vertices are present in the description.
> SELECT h3_polyfillash3(unhex('0103000000010000000500000050fc1873d79a5ec0d0d556ec2fe342404182e2c7988f5dc0f46c567dae064140aaf1d24d628052c05e4bc8073d5b444050fc1873d79a5ec0d0d556ec2fe34240'), 2)
[WKB_PARSE_ERROR] Error parsing WKB: Unexpected end of WKB buffer at position 78

エラー・クラスを出力する関数

関連