Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix long long cast
  • Loading branch information
alexbruy authored and nyalldawson committed May 17, 2023
1 parent f25153c commit ae75745
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/analysis/processing/qgsalgorithmdownloadvectortiles.cpp
Expand Up @@ -136,7 +136,7 @@ QVariantMap QgsDownloadVectorTilesAlgorithm::processAlgorithm( const QVariantMap
QgsTileMatrix tileMatrix = mTileMatrixSet.tileMatrix( i );
QgsTileRange tileRange = tileMatrix.tileRangeFromExtent( mExtent );
tileRanges.insert( i, tileRange );
tileCount += static_cast< long long >( ( tileRange.endColumn() - tileRange.startColumn() + 1 ) * ( tileRange.endRow() - tileRange.startRow() + 1 ) );
tileCount += static_cast< long long >( tileRange.endColumn() - tileRange.startColumn() + 1 ) * ( tileRange.endRow() - tileRange.startRow() + 1 );
}
if ( tileCount > mTileLimit )
{
Expand Down Expand Up @@ -182,7 +182,7 @@ QVariantMap QgsDownloadVectorTilesAlgorithm::processAlgorithm( const QVariantMap
multiStepFeedback.setCurrentStep( it.key() );

QgsTileMatrix tileMatrix = mTileMatrixSet.tileMatrix( it.key() );
tileCount = static_cast< long long >( ( it.value().endColumn() - it.value().startColumn() + 1 ) * ( it.value().endRow() - it.value().startRow() + 1 ) );
tileCount = static_cast< long long >( it.value().endColumn() - it.value().startColumn() + 1 ) * ( it.value().endRow() - it.value().startRow() + 1 );

const QPointF viewCenter = tileMatrix.mapToTileCoordinates( mExtent.center() );

Expand Down

0 comments on commit ae75745

Please sign in to comment.