[postgis-users] Longest axis of a polygon

Christian Heine christian at geosci.usyd.edu.au
Wed Feb 1 19:16:37 PST 2006

On 01/02/2006, at 12:57 PM, Michael Fuhr wrote:
> Here's a function that I've only minimally tested.  As I said, I'm
> not familiar with solving this particular problem so corrections
> or improvements are welcome.  One possible problem is that for
> certain geometries the function might return a linestring that lies
> entirely outside the geometry, except for the endpoints; a crescent
> comes to mind.

You're a legend! That's exactly what I was looking for. So far, the  
results look very very useful.
Thanks a lot for the help! I will have a look if it needs further  
improvement and will let you know if I change something.


Christian Heine
EarthByte Group <www.earthbyte.org>
School of Geosciences - The University of Sydney

More information about the postgis-users mailing list