minimum bounding circle for a triangle/polygon

From: "George Pavlov" <gpavlov(at)mynewplace(dot)com>
To: <pgsql-sql(at)postgresql(dot)org>
Subject: minimum bounding circle for a triangle/polygon
Date: 2007-08-22 15:39:28
Message-ID: 8C5B026B51B6854CBE88121DBF097A8604C28B@ehost010-33.exch010.intermedia.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

before i start reinventing the wheel does anyone have handy a function (or straight SQL) for calculating the centerpoint coordinates and the radius of the minimum bounding circle (not the the circumcircle) of a triangle (coordinates of 3 points given as inputs).

a bonus would be a generalization for any polygon, but that's probably too much.

thanks in advance!

george

Browse pgsql-sql by date

  From Date Subject
Next Message Kristo Kaiv 2007-08-23 05:51:36 table column vs. out param [1:0]
Previous Message Aleksandr Vinokurov 2007-08-22 15:02:03 Re: Partial index and query plan