CG_IsValid — Tests whether a geometry is valid according to SFCGAL
boolean CG_IsValid(geometry geom);
Returns true if the input geometry is valid according to SFCGAL.
This differs from ST_IsValid, which checks OGC validity through GEOS.
Availability: 3.8.0
This method needs SFCGAL backend.
This function supports 3d and will not drop the z-index.
This function supports Polyhedral surfaces.
This function supports Triangles and Triangulated Irregular Network Surfaces (TIN).
SELECT CG_IsValid('LINESTRING Z (0 0 0,0 0 1)'::geometry);
t