CG_Distance — Computes the minimum distance between two geometries
double precision CG_Distance( geometry geomA , geometry geomB );
Computes the minimum distance between two geometries.
Performed by the SFCGAL module
|
|
|
NOTE: this function returns a double precision value representing the distance. |
Verfügbarkeit: 3.5.0
Diese Methode benötigt ein SFCGAL-Backend.
Diese Funktion unterstützt Dreiecke und dreieckige unregelmäßige Netzoberflächen (TIN).
SELECT CG_Distance('LINESTRING(0.0 0.0,-1.0 -1.0)', 'LINESTRING(3.0 4.0,4.0 5.0)');
cg_distance
-------------
2.0
(1 row)