Skip to content

Commit bdd7a1c

Browse files
elpasonyalldawson
authored andcommittedApr 17, 2019
Remove build warnings
1 parent 6d55e72 commit bdd7a1c

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed
 

‎src/3d/terrain/qgsdemterraintileloader_p.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ static QByteArray _readDtmData( QgsRasterDataProvider *provider, const QgsRectan
176176
if ( provider->crs() != destCrs )
177177
{
178178
projector.reset( new QgsRasterProjector );
179-
projector->setCrs( provider->crs(), destCrs );
179+
projector->setCrs( provider->crs(), destCrs, provider->transformContext() );
180180
projector->setInput( provider );
181181
input = projector.get();
182182
}

‎src/core/raster/qgsrasterprojector.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ Qgis::DataType QgsRasterProjector::dataType( int bandNo ) const
5959

6060
/// @cond PRIVATE
6161

62-
6362
void QgsRasterProjector::setCrs( const QgsCoordinateReferenceSystem &srcCRS,
6463
const QgsCoordinateReferenceSystem &destCRS,
6564
int srcDatumTransform,
@@ -192,8 +191,8 @@ ProjectorData::ProjectorData( const QgsRectangle &extent, int width, int height,
192191
}
193192
}
194193
QgsDebugMsgLevel( QStringLiteral( "CPMatrix size: mCPRows = %1 mCPCols = %2" ).arg( mCPRows ).arg( mCPCols ), 4 );
195-
mDestRowsPerMatrixRow = static_cast< float >( mDestRows ) / ( mCPRows - 1 );
196-
mDestColsPerMatrixCol = static_cast< float >( mDestCols ) / ( mCPCols - 1 );
194+
mDestRowsPerMatrixRow = static_cast< double >( mDestRows ) / ( mCPRows - 1 );
195+
mDestColsPerMatrixCol = static_cast< double >( mDestCols ) / ( mCPCols - 1 );
197196

198197
QgsDebugMsgLevel( QStringLiteral( "CPMatrix:" ), 5 );
199198
QgsDebugMsgLevel( cpToString(), 5 );

0 commit comments

Comments
 (0)
Please sign in to comment.