Re: geodjango: find all points from a database, bound by a polygon

2009-05-28 Thread Ariel Nunez
> > > Then try calingl the wkt methond on the Envelope object to get a proper > > string repr of the polygon. > > > What is even more amazing is how many typos are in that sentence. I should make my default font bigger so I notice them better. Glad it works, Ariel. --~--~-~--~~-

Re: geodjango: find all points from a database, bound by a polygon

2009-05-28 Thread nbv4
OMG wow that worked. Thanks a ton. On May 28, 6:44 pm, Ariel Nunez 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

Re: geodjango: find all points from a database, bound by a polygon

2009-05-28 Thread Ariel Nunez
> > >>> 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

Re: geodjango: find all points from a database, bound by a polygon

2009-05-28 Thread nbv4
On May 28, 5:52 pm, Ariel Nunez wrote: > On Thu, May 28, 2009 at 4:12 PM, nbv4 wrote: > > > I have this model: > > > > from django.contrib.gis.db import models > > > class Base(models.Model): > >        identifier      =       models.CharField(max_length=8, > > primary_k

Re: geodjango: find all points from a database, bound by a polygon

2009-05-28 Thread Ariel Nunez
On Thu, May 28, 2009 at 4:12 PM, nbv4 wrote: > > 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.CharF