Skip to content

Commit

Permalink
Set up geotransform so that origin is the top-left coordinate
Browse files Browse the repository at this point in the history
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 29, 2015
1 parent 11d1ac9 commit dbb8cc2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/analysis/raster/qgsalignraster.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit dbb8cc2

Please sign in to comment.