Skip to content
Permalink
Browse files

Set up geotransform so that origin is the top-left coordinate

This has no practical difference, but some software (InaSAFE) likes
more when the origin is top-left instead of bottom-left.

Probably this has a bit better memory access pattern too when
rendering images
  • Loading branch information
wonder-sk committed Jun 26, 2015
1 parent 11d1ac9 commit dbb8cc20dd055c3ba8f1f533da187b8acb75042b
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/analysis/raster/qgsalignraster.cpp
@@ -336,9 +336,9 @@ bool QgsAlignRaster::checkInputParameters()
mGeoTransform[0] = originX;
mGeoTransform[1] = mCellSizeX;
mGeoTransform[2] = 0;
mGeoTransform[3] = originY;
mGeoTransform[3] = originY + ( mCellSizeY * ySize );
mGeoTransform[4] = 0;
mGeoTransform[5] = mCellSizeY;
mGeoTransform[5] = -mCellSizeY;

return true;
}

0 comments on commit dbb8cc2

Please sign in to comment.
You can’t perform that action at this time.