WKB_PARSE_ERROR錯誤類別
剖析 WKB 時發生錯誤: <parseError>
位置 <pos>
參數
- parseError:所遇到的剖析錯誤類型描述。
- pos:WKB 二進位字串中發生剖析錯誤的 1 個位置。
說明
剖析輸入時,某些地理空間函式可能會傳回此錯誤,其預期為已知的二進位 (WKB) 格式。 深入瞭解 WKB。
範例
-- 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
發出錯誤類別的函式
- h3_coverash3函式
- h3_coverash3string函式
- h3_pointash3 函式
- h3_pointash3string 函式
- h3_polyfillash3函式
- h3_polyfillash3string函式
- h3_tessellateaswkb 函式