Note
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de vous connecter ou de changer d’annuaire.
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de changer d’annuaire.
Erreur d'analyse GeoJSON : <parseError> à la position <pos>
Paramètres
- parseError: description de l’erreur d’analyse rencontrée.
- pos: position basée sur 1 dans la chaîne GeoJSON où l’erreur d’analyse s’est produite.
Explication
Certaines fonctions géospatiales peuvent renvoyer cette erreur lors de l’analyse de l’entrée qui doit être au format GeoJSON. En savoir plus sur le format GeoJSON.
Exemples
-- 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
Fonctions qui émettent la classe d’erreur
-
Fonction
h3_coverash3 -
Fonction
h3_coverash3string -
Fonction
h3_pointash3 -
Fonction
h3_pointash3string -
Fonction
h3_polyfillash3 -
Fonction
h3_polyfillash3string -
Fonction
h3_tessellateaswkb