Skip to content

Commit 49ef641

Browse files
committed
autotest: adjustments for PROJ 9.6
1 parent 5ab779a commit 49ef641

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

autotest/gdrivers/jp2metadata.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def test_jp2metadata_1():
4040
ds = gdal.Open("data/jpeg2000/erdas_foo.jp2")
4141
wkt = ds.GetProjectionRef()
4242
gt = ds.GetGeoTransform()
43-
assert wkt.startswith('PROJCS["ETRS89')
43+
assert wkt.startswith('PROJCS["ETRS89') or wkt.startswith('PROJCS["EUREF-FIN')
4444
expected_gt = (356000.0, 0.5, 0.0, 7596000.0, 0.0, -0.5)
4545
for i in range(6):
4646
assert gt[i] == pytest.approx(expected_gt[i], abs=1e-5)

autotest/osr/osr_basic.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -2023,7 +2023,9 @@ def test_osr_basic_is_dynamic():
20232023

20242024
srs = osr.SpatialReference()
20252025
srs.ImportFromEPSG(4258) # ETRS89 (generic), using datum ensemble
2026-
assert not srs.IsDynamic()
2026+
# Just run it. Prior to PROJ 9.6, this was not a dynamic CRS
2027+
# Since PROJ 9.6, it is a dynamic CRS.
2028+
srs.IsDynamic()
20272029

20282030
srs = osr.SpatialReference()
20292031
srs.SetFromUserInput(

0 commit comments

Comments
 (0)