Skip to content
Permalink
Browse files

Don't use a boundCRS definition as the WKT definition of EPSG:4326

on proj 6 builds

See OSGeo/PROJ#1804
  • Loading branch information
nyalldawson committed Dec 17, 2019
1 parent 77804eb commit 550dede70e233b2f6a036e6402f0081c98e603c5
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/core/qgis.h
@@ -615,6 +615,11 @@ void CORE_EXPORT qgsFree( void *ptr ) SIP_SKIP;
*/
CONSTLATIN1STRING geoWkt()
{
#if PROJ_VERSION_MAJOR>=6
return QLatin1String(
R"""(GEOGCRS["WGS 84",DATUM["World Geodetic System 1984",ELLIPSOID["WGS 84",6378137,298.257223563,LENGTHUNIT["metre",1]]],PRIMEM["Greenwich",0,ANGLEUNIT["degree",0.0174532925199433]],CS[ellipsoidal,2],AXIS["geodetic latitude (Lat)",north,ORDER[1],ANGLEUNIT["degree",0.0174532925199433]],AXIS["geodetic longitude (Lon)",east,ORDER[2],ANGLEUNIT["degree",0.0174532925199433]],USAGE[SCOPE["unknown"],AREA["World"],BBOX[-90,-180,90,180]],ID["EPSG",4326]] )"""
);
#else
return QLatin1String(
"GEOGCS[\"WGS 84\", "
" DATUM[\"WGS_1984\", "
@@ -628,6 +633,7 @@ CONSTLATIN1STRING geoWkt()
" AXIS[\"Long\",EAST], "
" AUTHORITY[\"EPSG\",\"4326\"]]"
);
#endif
}

//! PROJ4 string that represents a geographic coord sys

0 comments on commit 550dede

Please sign in to comment.
You can’t perform that action at this time.