Changes between Version 13 and Version 14 of GeoDjangoDatabaseAPI


Ignore:
Timestamp:
01/28/2008 03:53:01 PM (8 years ago)
Author:
jbronn
Comment:

Added documentation about the extent method, added in r7028.

Legend:

Unmodified
Added
Removed
Modified
  • GeoDjangoDatabaseAPI

    v13 v14  
    234234== distance ==
    235235''Availability'': PostGIS, Oracle
     236
    236237The `distance` method takes a geometry as a parameter, and will attach a `distance` attribute to every model in the returned queryset that contains the distance (in units of the field) to the given geometry.
     238
     239== extent ==
     240''Availability'': PostGIS
     241
     242Returns the extent (aggregate) of the features in the `GeoQuerySet`. The extent will be returned as a 4-tuple, consisting of (xmin, ymin, xmax, ymax).
     243{{{
     244>>> qs = City.objects.filter(name__in=('Houston', 'Dallas'))
     245>>> print qs.extent()
     246(-96.8016128540039, 29.7633724212646, -95.3631439208984, 32.782058715820)
     247}}}
    237248
    238249== gml ==
Back to Top