[postgis-users] Problem finding the center of an irregular polygon

Ben Madin ben at remoteinformation.com.au
Mon Jul 27 14:46:32 PDT 2009


G'day Mikhil,

Have a look at ST_PointOnSurface - this might help

cheers

Ben


On 28/07/2009, at 1:31 AM, Mikhil Masli wrote:

> Hi:
>
> I am trying to find the center of an irregularly shaped polygon  
> (this might even be concave). The use case is to label an  
> arbitrarily shaped polygon in the middle. I have tried centroid, but  
> the centroid need not be in the visual middle or it may even end up  
> outside the polygon.
>
> If you guys have any ideas/solutions or can point me to any places  
> which can be a source for ideas/solutions, I'd appreciate it!
>
> Thanks,
> Mikhil
>
> -- 
> Go Gophers!
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users

-- 

Ben Madin
REMOTE INFORMATION

t : +61 8 9192 5455
f : +61 8 9192 5535
m : 0448 887 220
Broome   WA   6725

ben at remoteinformation.com.au



							Out here, it pays to know...





More information about the postgis-users mailing list