分析 WKB 时出错:<parseError>
位置处的 <pos>
参数
- parseError:描述遇到的分析错误类型。
- pos:在发生分析错误的 WKB 二进制字符串中基于 1 的位置。
说明
分析输入时,某些地理空间函数可能会返回此错误,该输入应采用已知二进制(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
函数