[postgis-users] distance from centroid to the points that form the outer boundary of the polygon
Edward Mac Gillavry
emacgillavry at hotmail.com
Mon Jul 30 06:21:56 PDT 2012
Hi there,
How about calculating the MinimumBoundingCircle of your geometry first http://postgis.refractions.net/docs/ST_MinimumBoundingCircle.html. Once you have the circle, it shouldn't be too difficult to derive the radius from this?
HTH
Edward
From: yaminijsingh at live.com
To: postgis-users at postgis.refractions.net
Date: Mon, 30 Jul 2012 15:04:15 +0200
Subject: [postgis-users] distance from centroid to the points that form the outer boundary of the polygon
Hi All,
I am looking for suggestions for the following problem I have
at hand.
1.
I have a table that contain multipolygons
2.
I want to calculate the maximum distance of
points that form the polygon from the centroid
of the polygon. For example of the polygon is formed of 50 points then I want
to have distance of all the 50 points from the centroid of the polygon.
I am not sure if someone has done this before. But I am
finding it difficult to implement it. Any help in this regards is welcome…
Best,YJS
_______________________________________________
postgis-users mailing list
postgis-users at postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20120730/dfdeafde/attachment.html>
More information about the postgis-users
mailing list