Name

CG_IsSimple — Tests whether a geometry is simple according to SFCGAL

Synopsis

boolean CG_IsSimple(geometry geom);

Description

Returns true if the input geometry is simple according to SFCGAL.

This differs from ST_IsSimple, which checks simplicity through liblwgeom.

Availability: 3.8.0 - requires SFCGAL >= 2.3.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_IsSimple('LINESTRING(0 0,2 2,2 0,0 2)'::geometry);
Output
f
Figure
Geometry figure for visual-cg-issimple-01