Hey folks,
This works great with something like:
annotated_qset = GeoModel.objects.annotate(area=Area('geom'))
I then have a property called 'area` which I can use and it's all great.
However, I then try and filter by Area by following the documentation for filtering by Length on the documentation page, so I try something like:
filtered_qset = GeoModel.objects.annotate(area=Area('geom')).filter(area__gt=1)
This gives an error like "AttributeError: 'AreaField' object has no attribute 'get_lookup".
I could be totally naive here and this may just not be a trivial thing for the back-end (PostGIS in my case) to support, but just wondering if anyone has any work-arounds to filter by area size of feature, and / or if there are plans to support this in future versions.
Thank you all again for an amazing community and amazing piece of software :-)
-Sanjay