[postgis-users] Distance between two furthest points of a group

Arnaud Lesauvage arnaud.listes at codata.eu
Fri Jun 26 07:20:28 PDT 2015


Le 26/06/2015 13:54, Jonathan Moules a écrit :
> I have sets of points (up to 250,000 in a set) and I want to get the
> furthest distance between any of them.
>
> In theory the simplest way is to use
> ST_MinimumBoundingCircle(ST_Collect(geography) and then get the diameter
> of that.

ST_MinimumBoundingCircle will not return what you expect.
Take the three vertices of an equilateral triangle as an example, the 
difference is obvious : http://i.imgur.com/i3GX4Ml.png


More information about the postgis-users mailing list