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
Questo metodo richiede il backend SFCGAL.
Questa funzione supporta il 3d e non distrugge gli z-index.
Questa funzione supporta le Polyhedral Surface.
Questa funzione supporta i Triangoli e le Triangulated Irregular Network Surfaces (TIN).
SELECT CG_IsValid('LINESTRING Z (0 0 0,0 0 1)'::geometry);
t