CG_3DDistance — Computes the minimum 3D distance between two geometries
double precision CG_3DDistance(
geometry geomA , geometry geomB )
;
Computes the minimum 3D distance between two geometries.
Performed by the SFCGAL module
NOTE: this function returns a double precision value representing the 3D distance. |
Disponibilité : 3.5.0
Cette méthode nécessite le backend SFCGAL.
Cette fonction prend en charge les triangles et les réseaux irréguliers triangulés (TIN).
SELECT CG_3DDistance('LINESTRING(-1.0 0.0 2.0,1.0 0.0 3.0)', 'TRIANGLE((-4.0 0.0 1.0,4.0 0.0 1.0,0.0 4.0 1.0,-4.0 0.0 1.0))'); cg_3ddistance ---------------- 1 (1 row)