ST_LongestDistance
ST_MaxDistance(geom1: Geometry, geom2: Geometry)
SELECT ST_MaxDistance( ST_GeomFromText("POLYGON ((30 10, 40 40, 20 40, 10 20, 30 10))"), ST_GeomFromText("POLYGON ((10 20, 30 30, 40 20, 30 10, 10 20))") )
36.05551275463989
Was this page helpful?