mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
avoid OSRFixup with GDAL >= 2.5
This commit is contained in:
parent
122d5c3efd
commit
9a8c0d2898
@ -638,8 +638,10 @@ bool QgsCoordinateReferenceSystem::createFromWkt( const QString &wkt )
|
||||
{
|
||||
CPLFree( proj4src );
|
||||
|
||||
#if GDAL_VERSION_NUM < GDAL_COMPUTE_VERSION(2,5,0)
|
||||
// try fixed up version
|
||||
OSRFixup( d->mCRS );
|
||||
#endif
|
||||
|
||||
OSRExportToProj4( d->mCRS, &proj4src );
|
||||
|
||||
@ -1176,9 +1178,11 @@ void QgsCoordinateReferenceSystem::setMapUnits()
|
||||
|
||||
char *unitName = nullptr;
|
||||
|
||||
#if GDAL_VERSION_NUM < GDAL_COMPUTE_VERSION(2,5,0)
|
||||
// Of interest to us is that this call adds in a unit parameter if
|
||||
// one doesn't already exist.
|
||||
OSRFixup( d->mCRS );
|
||||
#endif
|
||||
|
||||
if ( OSRIsProjected( d->mCRS ) )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user