On Tue, Jun 1, 2010 at 12:57 PM, Luca Casagrande
wrote:
> Is there a way to create a loop changing only the model name?
geo_models = [model1, model2, model3, ...]
for m in geo_models:
m.objects.filter(geom__intersects=fs[0].geom)
--
You received this message
Hello everybody,
using GeoDjango I need to do a spatial intersections through a lot of
different model (polygon):
output1 = model1.objects.filter(geom__intersects=fs[0].geom)
output2 = model2.objects.filter(geom__intersects=fs[0].geom)
...
Where fs is a QuerySet output.
Is there a way to create a
2 matches
Mail list logo