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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user