We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 33a5ee7 commit 8316063Copy full SHA for 8316063
src/plugins/georeferencer/qgsgeoreftransform.cpp
@@ -577,10 +577,11 @@ bool QgsProjectiveGeorefTransform::updateParametersFromGCPs( const QVector<QgsPo
577
return false;
578
579
// HACK: flip y coordinates, because georeferencer and gdal use different conventions
580
- QVector<QgsPoint> flippedPixelCoords( pixelCoords.size() );
581
- for ( int i = 0; i < pixelCoords.size(); i++ )
+ QVector<QgsPoint> flippedPixelCoords;
+ flippedPixelCoords.reserve( pixelCoords.size() );
582
+ Q_FOREACH ( const QgsPoint& coord, pixelCoords )
583
{
- flippedPixelCoords[i] = pixelCoords[i];
584
+ flippedPixelCoords << QgsPoint( coord.x(), -coord.y() );
585
}
586
587
QgsLeastSquares::projective( mapCoords, flippedPixelCoords, mParameters.H );
0 commit comments