1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #25645 -- Dropped support for SpatiaLite < 4.0.

This commit is contained in:
Tim Graham
2016-05-31 11:31:51 -04:00
parent 62e4f8ec43
commit 47f22e8286
9 changed files with 22 additions and 45 deletions

View File

@@ -2,7 +2,6 @@ import re
import unittest
from django.contrib.gis.gdal import HAS_GDAL
from django.db import connection
from django.test import mock, skipUnlessDBFeature
from django.utils import six
@@ -110,9 +109,7 @@ class SpatialRefSysTest(unittest.TestCase):
if postgis or spatialite:
srs = sr.srs
six.assertRegex(self, srs.proj4, sd['proj4_re'])
# No `srtext` field in the `spatial_ref_sys` table in SpatiaLite < 4
if not spatialite or connection.ops.spatial_version[0] >= 4:
self.assertTrue(srs.wkt.startswith(sd['srtext']))
self.assertTrue(srs.wkt.startswith(sd['srtext']))
def test_ellipsoid(self):
"""