Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Move warning to better location
- Loading branch information
|
@@ -500,6 +500,11 @@ void QgsCoordinateTransform::transformCoords( int numPoints, double *x, double * |
|
|
QgsDebugMsg( QString( "[[[[[[ Number of points to transform: %1 ]]]]]]" ).arg( numPoints ) ); |
|
|
#endif |
|
|
|
|
|
#ifdef QGISDEBUG |
|
|
if ( !d->mHasContext ) |
|
|
qWarning( "No QgsCoordinateTransformContext context set for transform" ); |
|
|
#endif |
|
|
|
|
|
// use proj4 to do the transform |
|
|
|
|
|
// if the source/destination projection is lat/long, convert the points to radians |
|
|
|
@@ -105,11 +105,6 @@ bool QgsCoordinateTransformPrivate::initialize() |
|
|
|
|
|
mIsValid = true; |
|
|
|
|
|
#ifdef QGISDEBUG |
|
|
if ( !mHasContext ) |
|
|
qWarning( "No QgsCoordinateTransformContext context set for transform" ); |
|
|
#endif |
|
|
|
|
|
int sourceDatumTransform = mSourceDatumTransform; |
|
|
int destDatumTransform = mDestinationDatumTransform; |
|
|
bool useDefaultDatumTransform = ( sourceDatumTransform == - 1 && destDatumTransform == -1 ); |
|
|