I have this model: ------------------------ from django.contrib.gis.db import models
class Base(models.Model): identifier = models.CharField(max_length=8, primary_key=True) local = models.CharField(max_length=8) iata = models.CharField(max_length=8) name = models.CharField(max_length=96) location = models.PointField() ------------------------ Which is populated by 40,000 entries in my database where the "location" attribute is a longitude, latitude point on a world map. In a view I have a set of bounds that correspond to north, east south and west limits, and I'm trying to figure out how to create a query that will find all Bases within that bounded box. I can't find this kind of thing anywhere in the docs. Before I switched to geodjango, I could just do: ------------------ Base.objects.filter(lat__lte=NBounds).filter(lat__gte=SBounds).filter (lng__lte=WBounds).filter(lng__gte=EBounds) ------------------ Whats the equivalent with PointFields? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---