Permalink
Browse files

[2.1.x] Refs #29483 -- Relaxed WGS 84 check regex

With GDAL 2.3, the exact string changed again.
Backport of 86988dd from master.
  • Loading branch information...
claudep committed Jun 8, 2018
1 parent 36c35ab commit 69e2d173e5082a8c475586cff7920b2fb962c333
Showing with 1 addition and 6 deletions.
  1. +1 −6 tests/gis_tests/gdal_tests/test_ds.py
@@ -15,12 +15,7 @@
'0.017453292519943295]]'
)
# Using a regex because of small differences depending on GDAL versions.
-# AUTHORITY part has been added in GDAL 2.2.
-wgs_84_wkt_regex = (
- r'^GEOGCS\["GCS_WGS_1984",DATUM\["WGS_1984",SPHEROID\["WGS_(19)?84",'
- r'6378137,298.257223563\]\],PRIMEM\["Greenwich",0\],UNIT\["Degree",'
- r'0.017453292519943295\](,AUTHORITY\["EPSG","4326"\])?\]$'
-)
+wgs_84_wkt_regex = r'^GEOGCS\["(GCS_)?WGS[ _](19)?84".*$'
# List of acceptable data sources.
ds_list = (

0 comments on commit 69e2d17

Please sign in to comment.