Skip to content

Commit 56f16ac

Browse files
committedJun 11, 2019
Fix unnecessary proj transform construction under proj 6 in certain circumstances
1 parent d2961af commit 56f16ac

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎src/core/qgscoordinatetransform_p.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,12 @@ QgsCoordinateTransformPrivate::QgsCoordinateTransformPrivate( const QgsCoordinat
104104
, mDestCRS( other.mDestCRS )
105105
, mSourceDatumTransform( other.mSourceDatumTransform )
106106
, mDestinationDatumTransform( other.mDestinationDatumTransform )
107+
, mProjCoordinateOperation( other.mProjCoordinateOperation )
107108
{
109+
#if PROJ_VERSION_MAJOR < 6
108110
//must reinitialize to setup mSourceProjection and mDestinationProjection
109111
initialize();
112+
#endif
110113
}
111114
Q_NOWARN_DEPRECATED_POP
112115

0 commit comments

Comments
 (0)
Please sign in to comment.