Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Yes, Virginia, `ST_MakeLine` really exists in PostGIS 1.3 and above.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@11981 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 9b8e90f93796b18ca43dcfbf3bfe3267157d322f 1 parent 474fb8c
@jbronn jbronn authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 django/contrib/gis/db/backends/postgis/operations.py
View
5 django/contrib/gis/db/backends/postgis/operations.py
@@ -199,9 +199,11 @@ def get_dist_ops(operator):
if version < (1, 3, 0):
UNIONAGG = 'GeomUnion'
UNION = 'Union'
+ MAKELINE = False
else:
UNIONAGG = 'ST_Union'
UNION = 'ST_Union'
+ MAKELINE = 'ST_MakeLine'
# Only PostGIS versions 1.3.4+ have GeoJSON serialization support.
if version < (1, 3, 4):
@@ -212,11 +214,10 @@ def get_dist_ops(operator):
# ST_ContainsProperly ST_MakeLine, and ST_GeoHash added in 1.4.
if version >= (1, 4, 0):
GEOHASH = 'ST_GeoHash'
- MAKELINE = 'ST_MakeLine'
BOUNDINGCIRCLE = 'ST_MinimumBoundingCircle'
self.geometry_functions['contains_properly'] = PostGISFunction(prefix, 'ContainsProperly')
else:
- GEOHASH, MAKELINE, BOUNDINGCIRCLE = False, False, False
+ GEOHASH, BOUNDINGCIRCLE = False, False
# Geography type support added in 1.5.
if version >= (1, 5, 0):
Please sign in to comment.
Something went wrong with that request. Please try again.