OMG wow that worked. Thanks a ton.

On May 28, 6:44 pm, Ariel Nunez <ingenieroar...@gmail.com> wrote:
> > >>> 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 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to