Name

CG_IsValid — Tests whether a geometry is valid according to SFCGAL

Synopsis

boolean CG_IsValid(geometry geom);

Description

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

Examples

Code
SELECT CG_IsValid('LINESTRING Z (0 0 0,0 0 1)'::geometry);
Output
t
Figure
Geometry figure for visual-cg-isvalid-01