I want to get the centroid of all Points in my PointField:
class About(models.Model):
user = models.ForeignKey(User)
slug = models.SlugField(blank=True, unique=True, null = True)
origin = models.PointField()
...
objects = models.GeoManager()
Thanks a lot!
Chrstian Karrié
--
You received this message because you are subscribed to the Google Groups "geodjango" group.
To post to this group, send email to geod...@googlegroups.com.
To unsubscribe from this group, send email to geodjango+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/geodjango?hl=en.
Thanks josh
On 9 Mrz., 03:17, Josh Livni <j...@umbrellaconsulting.com> wrote:
> About.objects.all().collect().envelope.centroid
>
> -Josh
>
> On Wed, Mar 3, 2010 at 8:36 AM, ckar...@googlemail.com <
>
> ckar...@googlemail.com> wrote:
> > Hi Group,
>
> > I want to get the centroid of all Points in my PointField:
>
> > class About(models.Model):
> > user = models.ForeignKey(User)
> > slug = models.SlugField(blank=True, unique=True, null = True)
> > origin = models.PointField()
> > ...
> > objects = models.GeoManager()
>
> > Thanks a lot!
> > Chrstian Karrié
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "geodjango" group.
> > To post to this group, send email to geod...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > geodjango+...@googlegroups.com<geodjango%2Bunsu...@googlegroups.com>