Name

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

Übersicht

valid_detail CG_IsValidDetail(geometry geom);

Beschreibung

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

Diese Methode benötigt ein SFCGAL-Backend.

Diese Funktion unterstützt 3d und lässt den Z-Index nicht fallen.

Diese Funktion unterstützt polyedrische Flächen.

Diese Funktion unterstützt Dreiecke und dreieckige unregelmäßige Netzoberflächen (TIN).

Beispiele

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