diff options
| author | Justin Bronn <jbronn@gmail.com> | 2009-11-16 18:49:00 +0000 |
|---|---|---|
| committer | Justin Bronn <jbronn@gmail.com> | 2009-11-16 18:49:00 +0000 |
| commit | 32d0730b8965b272368763d75803fa0472d97177 (patch) | |
| tree | a56cfec80e9324fba5115c454ffcfaa7fcf26911 /django/contrib/gis/db/models/sql/query.py | |
| parent | 6c61ca3d74ae438c34f404676470234e8213d7c2 (diff) | |
Fixed #11433 -- 3D geometry fields are now supported with PostGIS; EWKB is now used by `PostGISAdaptor`.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@11742 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/contrib/gis/db/models/sql/query.py')
| -rw-r--r-- | django/contrib/gis/db/models/sql/query.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/django/contrib/gis/db/models/sql/query.py b/django/contrib/gis/db/models/sql/query.py index 094fc5815f..1691637c1e 100644 --- a/django/contrib/gis/db/models/sql/query.py +++ b/django/contrib/gis/db/models/sql/query.py @@ -262,7 +262,10 @@ class GeoQuery(sql.Query): """ if isinstance(aggregate, self.aggregates_module.GeoAggregate): if aggregate.is_extent: - return self.aggregates_module.convert_extent(value) + if aggregate.is_extent == '3D': + return self.aggregates_module.convert_extent3d(value) + else: + return self.aggregates_module.convert_extent(value) else: return self.aggregates_module.convert_geom(value, aggregate.source) else: |
