[prev in list] [next in list] [prev in thread] [next in thread] 

List:       postgis-users
Subject:    Re: [postgis-users] Problem finding the center of an irregular
From:       Mikhil Masli <mikhilm () gmail ! com>
Date:       2009-07-28 2:52:27
Message-ID: 5f3d11c20907271952l70712b15g8a7bb551a6864446 () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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@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@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@remoteinformation.com.au
>
>
>
>                                                        Out here, it pays to
> know...
>
>
> _______________________________________________
> postgis-users mailing list
> postgis-users@postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
>



-- 
Go Gophers!

[Attachment #5 (text/html)]

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.<br> <br>Mikhil<br><br><div class="gmail_quote">On Mon, Jul 27, \
2009 at 4:46 PM, Ben Madin <span dir="ltr">&lt;<a \
href="mailto:ben@remoteinformation.com.au">ben@remoteinformation.com.au</a>&gt;</span> \
wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, \
204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> G&#39;day Mikhil,<br>
<br>
Have a look at ST_PointOnSurface - this might help<br>
<br>
cheers<br>
<br>
Ben<div><div></div><div class="h5"><br>
<br>
<br>
On 28/07/2009, at 1:31 AM, Mikhil Masli wrote:<br>
<br>
</div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, \
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div \
class="h5"> Hi:<br>
<br>
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.<br>

<br>
If you guys have any ideas/solutions or can point me to any places which can be a \
source for ideas/solutions, I&#39;d appreciate it!<br> <br>
Thanks,<br>
Mikhil<br>
<br>
-- <br>
Go Gophers!<br></div></div>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@postgis.refractions.net" \
target="_blank">postgis-users@postgis.refractions.net</a><br> <a \
href="http://postgis.refractions.net/mailman/listinfo/postgis-users" \
target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br> \
</blockquote> <br>
-- <br>
<br>
Ben Madin<br>
REMOTE INFORMATION<br>
<br>
t : +61 8 9192 5455<br>
f : +61 8 9192 5535<br>
m : 0448 887 220<br>
Broome   WA   6725<br>
<br>
<a href="mailto:ben@remoteinformation.com.au" \
target="_blank">ben@remoteinformation.com.au</a><br> <br>
<br>
<br>
                                                        Out here, it pays to \
know...<br> <br>
<br>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@postgis.refractions.net" \
target="_blank">postgis-users@postgis.refractions.net</a><br> <a \
href="http://postgis.refractions.net/mailman/listinfo/postgis-users" \
target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br> \
</blockquote></div><br><br clear="all"><br>-- <br>Go Gophers!<br>



_______________________________________________
postgis-users mailing list
postgis-users@postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic