Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.wherobots.com/llms.txt

Use this file to discover all available pages before exploring further.

Computes and returns discrete Frechet Distance between the given two geometries, based on Computing Discrete Frechet Distance If any of the geometries is empty, returns 0.0 ST_FrechetDistance

Signatures

ST_FrechetDistance(g1: Geometry, g2: Geometry)

Parameters

g1
Geometry
required
The g1 value.
g2
Geometry
required
The g2 value.

Return type

A numeric value.

Example

SELECT ST_FrechetDistance(ST_GeomFromWKT('POINT (0 1)'), ST_GeomFromWKT('LINESTRING (0 0, 1 0, 2 0, 3 0, 4 0, 5 0)'))
5.0990195135927845