The ST_IsValid() function

The ST_IsValid() function takes an ST_Geometry and returns t (TRUE) if it is topologically correct; otherwise it returns f (FALSE). Properties of geometries are described in Properties of spatial data types.

The database server validates spatial data before accepting it, so ST_IsValid() always returns TRUE. This function may be used to validate spatial data supplied by other implementations of the OpenGIS spatial data specification.

Syntax

ST_IsValid(g ST_Geometry)

Return type

BOOLEAN


Copyright© 2018 HCL Technologies Limited