Nome

CG_Distance — Computes the minimum distance between two geometries

Sinossi

double precision CG_Distance( geometry geomA , geometry geomB );

Descrizione

Computes the minimum distance between two geometries.

Performed by the SFCGAL module

[Nota]

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

Availability: 3.5.0

Questo metodo richiede il backend SFCGAL.

Questa funzione supporta i Triangoli e le Triangulated Irregular Network Surfaces (TIN).

Geometry Examples

Code
SELECT CG_Distance('LINESTRING(0.0 0.0,-1.0 -1.0)', 'LINESTRING(3.0 4.0,4.0 5.0)');
Output
5
Figure
Geometry figure for visual-cg-distance-01

Si veda anche

CG_3DDistance, CG_Distance