> > >>> from django.contrib.gis.gdal.envelope import Envelope > >>> W = 39.9; N = -82.9; E=40.4; S=-82.2 > >>> bounds = Envelope((N, W, S, E, )) > >>> Base.objects.filter(location__intersects=bounds.wkt) >
Then try calingl the wkt methond on the Envelope object to get a proper string repr of the polygon. Ariel. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---

