Nome

CG_IsValidDetail — Returns a valid_detail row stating whether a geometry is valid according to SFCGAL, and if not a reason and a location.

Sinossi

valid_detail CG_IsValidDetail(geometry geom);

Descrizione

Returns a valid_detail row with a boolean validity flag, a reason for invalidity, and the invalidity location when SFCGAL reports one.

This differs from ST_IsValidDetail, 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).

Esempi

Code
SELECT valid, reason, ST_AsText(location) AS location
FROM CG_IsValidDetail('POLYGON((0 0,2 2,2 0,0 2,0 0))'::geometry);
Output
f | ring 0 self intersects |