Changes between Version 13 and Version 14 of GeoDjangoDatabaseAPI
- Timestamp:
- Jan 28, 2008, 3:53:01 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GeoDjangoDatabaseAPI
v13 v14 234 234 == distance == 235 235 ''Availability'': PostGIS, Oracle 236 236 237 The `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 242 Returns 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 }}} 237 248 238 249 == gml ==