在位置 <parseError>
解析 GeoJSON 时出错:<pos>
参数
- parseError:遇到分析错误的说明。
- pos:在发生分析错误的 GeoJSON 字符串中基于 1 的位置。
说明
分析必须采用 GeoJSON 格式的输入时,某些地理空间函数可能会返回此错误。
例子
-- Feeding an empty point in GeoJSON format into the h3_polyfillash3 function (as opposed to a polygon or multipolygon).
> SELECT h3_polyfillash3('{"type":"Point","coordinates":[]}', 2)
[GEOJSON_PARSE_ERROR] Error parsing GeoJSON: Invalid or unsupported type '"Point"' at position 9
-- Feeding an polygon with invalid GeoJSON (missing closing } at the end)
> SELECT H3_PolyfillAsH3('{"type":"Polygon","coordinates":[[[-122.4194,37.7749],[-118.2437,34.0522],[-74.0060,40.7128],[-122.4194,37.7749]]]', 2)
[GEOJSON_PARSE_ERROR] Error parsing GeoJSON: Unexpected end of GeoJSON string at position 115
发出错误类的函数
-
h3_coverash3
函数 -
h3_coverash3string
函数 -
h3_pointash3
函数 -
h3_pointash3string
函数 -
h3_polyfillash3
函数 -
h3_polyfillash3string
函数 -
h3_tessellateaswkb
函数