Skip to content

Commit cb14910

Browse files
committed
Fix qgis_coordinatereferencesystemtest with GDAL >= 2.0
1 parent 810fb5b commit cb14910

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/src/core/testqgscoordinatereferencesystem.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,14 @@ void TestQgsCoordinateReferenceSystem::createFromESRIWkt()
213213
myWktStrings << "GEOGCS[\"GCS_South_American_1969\",DATUM[\"D_South_American_1969\",SPHEROID[\"GRS_1967_Truncated\",6378160.0,298.25]],PRIMEM[\"Greenwich\",0.0],UNIT[\"Degree\",0.0174532925199433]]";
214214
myFiles << "";
215215
myGdalVersionOK << 1900;
216+
#if defined(GDAL_VERSION_NUM) && GDAL_VERSION_NUM >= 2000000
217+
//proj definition for EPSG:4618 was updated in GDAL 2.0 - see https://github.com/OSGeo/proj.4/issues/241
218+
myProj4Strings << "+proj=longlat +ellps=aust_SA +towgs84=-66.87,4.37,-38.52,0,0,0,0 +no_defs";
219+
myTOWGS84Strings << "+towgs84=-66.87,4.37,-38.52,0,0,0,0";
220+
#else
216221
myProj4Strings << "+proj=longlat +ellps=aust_SA +towgs84=-57,1,-41,0,0,0,0 +no_defs";
217222
myTOWGS84Strings << "+towgs84=-57,1,-41,0,0,0,0";
223+
#endif
218224
myAuthIdStrings << "EPSG:4618";
219225

220226
// do test with WKT definitions

0 commit comments

Comments
 (0)