Partager via


Classe d’erreur WKT_PARSE_ERROR

SQLSTATE : 22023

Erreur d’analyse de WKT : <parseError> à la position <pos>

Paramètres

  • parseError : description du type d’erreur d’analyse rencontrée.
  • pos : position basée sur 1 dans la chaîne WKT où l’erreur d’analyse s’est produite.

Explication

Certaines fonctions géospatiales peuvent retourner cette erreur lors de l’analyse de l’entrée, qui doit être au format Well-Known Text (WKT). En savoir plus sur WKT.

Exemples

-- 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

Fonctions émettant la classe d’erreur