分析 WKT 时出错:<parseError>
位置处的 <pos>
参数
- parseError:描述遇到的分析错误类型。
- pos:解析错误发生在 WKT 字符串中的从 1 开始的位置。
说明
分析必须采用 Well-Known Text (WKT) 格式的输入时,某些地理空间函数可能会返回此错误。
例子
-- Feeding an empty point in WKT format into the h3_polyfillash3 function (as opposed to a polygon or multipolygon).
> SELECT h3_polyfillash3('POINT EMPTY', 2)
[WKT_PARSE_ERROR] Error parsing WKT: Invalid or unsupported type 'POINT' at position 1
-- Feeding a polygon with less than 4 vertices into the h3_polyfillash3 function.
> SELECT h3_polyfillash3('POLYGON((-122.4194 37.7749,-118.2437 34.0522,-74.0060 40.7128))', 2)
[WKT_PARSE_ERROR] Error parsing WKT: Too few points in ring at position 63
发出错误类的函数
-
h3_coverash3
函数 -
h3_coverash3string
函数 -
h3_pointash3
函数 -
h3_pointash3string
函数 -
h3_polyfillash3
函数 -
h3_polyfillash3string
函数 -
h3_tessellateaswkb
函数