summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2018-06-12 13:34:58 -0400
committerGitHub <noreply@github.com>2018-06-12 13:34:58 -0400
commit9e4f26bb40abcade301ec836aa0b84acf5f60041 (patch)
treef5c2a1315e8da1df9ff0de8cde0714d9314f9283 /tests
parent8dcd43ce06b06cd67dab134099135d976ae9884a (diff)
Fixed #29483 -- Confirmed support for GDAL 2.3.
Diffstat (limited to 'tests')
-rw-r--r--tests/gis_tests/inspectapp/tests.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/gis_tests/inspectapp/tests.py b/tests/gis_tests/inspectapp/tests.py
index ca49fc0d2d..f499bbdbe0 100644
--- a/tests/gis_tests/inspectapp/tests.py
+++ b/tests/gis_tests/inspectapp/tests.py
@@ -88,7 +88,8 @@ class OGRInspectTest(TestCase):
# Same test with a 25D-type geometry field
shp_file = os.path.join(TEST_DATA, 'gas_lines', 'gas_leitung.shp')
model_def = ogrinspect(shp_file, 'MyModel', multi_geom=True)
- self.assertIn('geom = models.MultiLineStringField(srid=-1)', model_def)
+ srid = '-1' if GDAL_VERSION < (2, 3) else '31253'
+ self.assertIn('geom = models.MultiLineStringField(srid=%s)' % srid, model_def)
def test_date_field(self):
shp_file = os.path.join(TEST_DATA, 'cities', 'cities.shp')