[postgis-users] st_centroid Points not on Polygon
Paragon Corporation
lr at pcorp.us
Fri May 1 15:20:23 PDT 2009
Stan,
I think the answer is no. For example if you have a polygon with holes, the
centroid may very well lie in the hole.
Leo
_____
From: postgis-users-bounces at postgis.refractions.net
[mailto:postgis-users-bounces at postgis.refractions.net] On Behalf Of
Sufficool, Stanley
Sent: Friday, May 01, 2009 4:53 PM
To: PostGIS Users Discussion
Subject: [postgis-users] st_centroid Points not on Polygon
I'm sure I ran across this in the forums a year ago, but:
Is the st_centroid function guaranteed to return a point that lies on the
polygon? I have instances when my display doe not place it on the polygon
when using st_centroid(st_intersection(the_geom, <WKT BBOX>));
Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20090501/99d2202b/attachment.html>
More information about the postgis-users
mailing list