On Feb 13, 6:25 am, Alfonso <allanhender...@gmail.com> 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 use the `point_on_surface` property instead of `centroid`. -Justin --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---