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

Jonathan Moules J.Moules at hrwallingford.com
Fri Jun 26 04:54:01 PDT 2015


Hi List,
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.

The problem is - I don't seem to be able to get the diameter of that circle (which would give me the distance I want).

Does anyone have any thoughts on this? Is there a good way to get the diameter? Or some other way of getting the distance I desire.

Thanks,
Jonathan

________________________________

HR Wallingford and its subsidiaries uses faxes and emails for confidential and legally privileged business communications. They do not of themselves create legal commitments. Disclosure to parties other than addressees requires our specific consent. We are not liable for unauthorised disclosures nor reliance upon them.
If you have received this message in error please advise us immediately and destroy all copies of it.

HR Wallingford Limited
Howbery Park, Wallingford, Oxfordshire, OX10 8BA, United Kingdom
Registered in England No. 02562099

________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20150626/c83feb9f/attachment.html>


More information about the postgis-users mailing list