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

Kevin Neufeld kneufeld at refractions.net
Tue Jul 28 00:01:48 PDT 2009


Here's an article I stumbled upon employing a technique called "inside 
buffering" to determine the best spot to label an irregularly shaped 
polygon.

http://proceedings.esri.com/library/userconf/proc01/professional/papers/pap388/p388.htm

-- Kevin

Mikhil Masli wrote:
> Thanks a lot, Ben. I was looking for a more algorithmic solution. May 
> be, the way ST_PointOnSurface is implemented would help? I want to 
> implement such a solution in a clientside utility like, say, Flash. I 
> was wondering if GIS folks on this list would know of a solution.
>
> Mikhil
>
> On Mon, Jul 27, 2009 at 4:46 PM, Ben Madin 
> <ben at remoteinformation.com.au <mailto:ben at remoteinformation.com.au>> 
> wrote:
>
>     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
>         <mailto: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 <mailto:ben at remoteinformation.com.au>
>
>
>
>                                                            Out here,
>     it pays to know...
>
>
>     _______________________________________________
>     postgis-users mailing list
>     postgis-users at postgis.refractions.net
>     <mailto:postgis-users at postgis.refractions.net>
>     http://postgis.refractions.net/mailman/listinfo/postgis-users
>
>
>
>
> -- 
> Go Gophers!
> ------------------------------------------------------------------------
>
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
>   



More information about the postgis-users mailing list