class Extent(geo_field)
Availability: PostGIS, Oracle, SpatiaLite
Returns the extent of all geo_field
in the QuerySet
as a four-tuple, comprising the lower left coordinate and the upper right coordinate.
Example:
>>> qs = City.objects.filter(name__in=('Houston', 'Dallas')).aggregate(Extent('poly')) >>> print(qs['poly__extent']) (-96.8016128540039, 29.7633724212646, -95.3631439208984, 32.782058715820)
Please login to continue.