[postgis-devel] ST_MinimumBoundingRadius / Diameter
Paul Ramsey
pramsey at cleverelephant.ca
Wed Aug 14 08:55:22 PDT 2019
In response to a user query on the list, about the actual extrema points of a set of points, we looked at the minimum bounding circle calculation, and it *almost* returns the answer… but the center and radius don’t quite give you the extrema.
CREATE OR REPLACE FUNCTION ST_MinimumBoundingRadius(geometry, OUT center geometry, OUT radius double precision)
AS 'MODULE_PATHNAME', 'ST_MinimumBoundingRadius'
LANGUAGE 'c' IMMUTABLE STRICT _PARALLEL
_COST_HIGH;
I was wondering whether to add Yet Another Function or just change the signature of this function to include an ‘OUT diameter geometry’ linestring.
Thoughts?
P
More information about the postgis-devel
mailing list