CG_IsSimpleDetail — Returns a reason when a geometry is not simple according to SFCGAL
text CG_IsSimpleDetail(geometry geom);
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).
SELECT CG_IsSimpleDetail('LINESTRING(0 0,2 2,2 0,0 2)'::geometry);
linestring self intersects