Name

CG_IsSimpleDetail — Returns a reason when a geometry is not simple according to SFCGAL

Synopsis

text CG_IsSimpleDetail(geometry geom);

Description

Returns SFCGAL's reason when the input geometry is not simple. Returns NULL for simple geometries.

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_IsSimpleDetail('LINESTRING(0 0,2 2,2 0,0 2)'::geometry);
Output
linestring self intersects
Figure
Geometry figure for visual-cg-issimpledetail-01