Skip to main content
Returns text stating if the geometry is valid. If not, it provides a reason why it is invalid. The function can be invoked with just the geometry or with an additional flag. The flag alters the validity checking behavior. The flags parameter is a bitfield with the following options:
  • 0 (default): Use usual OGC SFS (Simple Features Specification) validity semantics.
  • 1: “ESRI flag”, Accepts certain self-touching rings as valid, which are considered invalid under OGC standards.
ST_IsValidReason

Signatures

Parameters

A
Geometry
required
The input geometry.
flag
Integer
The validation flag.

Return type

A string representation.

Examples

for valid geometry

for invalid geometries