Re: GeoDjango - Center of a Polygon

2009-02-13 Thread Justin Bronn
On Feb 13, 6:25 am, Alfonso wrote: > How do I grab the center x and y co-ordinates of a polygon and display > that in a template? {{ poly.centroid.x }}, {{ poly.centroid.y }} Note that the centroid point is not guaranteed to be on the surface of the polygon -- if that turns out be an issue than

GeoDjango - Center of a Polygon

2009-02-13 Thread Alfonso
How do I grab the center x and y co-ordinates of a polygon and display that in a template? I'd do this with a PointField... {{ object.coords.x }} etc Can I do that to get the center x and y points of a polygon? Thanks --~--~-~--~~~---~--~~ You received this messa