Name

CG_3DDistance — Computes the minimum 3D distance between two geometries

Synopsis

double precision CG_3DDistance( geometry geomA , geometry geomB );

Descrição

Computes the minimum 3D distance between two geometries.

Performed by the SFCGAL module

[Note]

NOTE: this function returns a double precision value representing the 3D distance.

Availability: 3.5.0

This method needs SFCGAL backend.

This function supports Triangles and Triangulated Irregular Network Surfaces (TIN).

Exemplos de Geometria

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)

Veja também

CG_Distance, ST_3DDistance