Comparision of points

2 views
Skip to first unread message

odd hogstad

unread,
Nov 23, 2010, 8:56:37 AM11/23/10
to geodjango
I have this model:

class MyPoint(models.Model):
point = models.PointField(null=True,blank=True)

If I have two instances of this model, point1 and point2 and a
distance d=Distance(km=5). What is the best way to determine wether
point1 is within the distance d of point2?

Thanks!

Odd-R.
Reply all
Reply to author
Forward
0 new messages