Skip to content

Commit dbb8cc2

Browse files
committedJun 29, 2015
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
1 parent 11d1ac9 commit dbb8cc2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/analysis/raster/qgsalignraster.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,9 +336,9 @@ bool QgsAlignRaster::checkInputParameters()
336336
mGeoTransform[0] = originX;
337337
mGeoTransform[1] = mCellSizeX;
338338
mGeoTransform[2] = 0;
339-
mGeoTransform[3] = originY;
339+
mGeoTransform[3] = originY + ( mCellSizeY * ySize );
340340
mGeoTransform[4] = 0;
341-
mGeoTransform[5] = mCellSizeY;
341+
mGeoTransform[5] = -mCellSizeY;
342342

343343
return true;
344344
}

0 commit comments

Comments
 (0)
Please sign in to comment.