1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #35883 -- Confirmed support for GDAL 3.9.

Updated test for change to exportToXML() which now errors out on unsupported projection methods. See https://github.com/OSGeo/gdal/issues/9223.

Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
This commit is contained in:
David Smith
2024-11-02 15:47:07 +00:00
committed by Sarah Boyce
parent f7601aed51
commit cd4497254e
3 changed files with 10 additions and 5 deletions

View File

@@ -1,4 +1,5 @@
from django.contrib.gis.gdal import (
GDAL_VERSION,
AxisOrder,
CoordTransform,
GDALException,
@@ -353,7 +354,8 @@ class SpatialRefTest(SimpleTestCase):
self.assertEqual(srs.name, "DHDN / Soldner 39 Langschoß")
self.assertEqual(srs.wkt, wkt)
self.assertIn("Langschoß", srs.pretty_wkt)
self.assertIn("Langschoß", srs.xml)
if GDAL_VERSION < (3, 9):
self.assertIn("Langschoß", srs.xml)
def test_axis_order(self):
wgs84_trad = SpatialReference(4326, axis_order=AxisOrder.TRADITIONAL)