Mirror/Rotate
Algorithm
The Mirror/Rotate operation allows you to reflect or mirror a raster map in a horizontal, vertical, or diagonal line, to transpose the map's rows and columns, or to rotate a raster map 90°, 180°, 270° (clock-wise).
A new georeference mirrorrotate is created with the same name as the output map.
Reflect in horizontal line:
All line numbers are switched.
- the first line (from left to right) becomes the last line (from left to right),
- the second line (from left to right) becomes the one but last line (from left to right),
etc.
Reflect in vertical line:
All column numbers are switched.
- the first column (from top to bottom) becomes the last column (from top to bottom),
- the second column (from top to bottom) becomes the one but last column (from top to bottom),
etc.
Transpose:
Row and column numbers are interchanged. All line numbers become column numbers and all column numbers become line numbers.
- the first line (from left to right) becomes the first column (from top to bottom),
- the second line (from left to right) becomes the second column (from top to bottom),
etc.
Reflect in diagonal:
- the first line (from left to right), becomes the last column (from bottom to top),
- the second line (from left to right) becomes the one but last column (from bottom to top,
etc.
Rotate 90° (clock-wise):
- the first line (from left to right) becomes the last column (from top to bottom),
- the second line (from left to right) becomes the one but last column (from top to bottom),
etc.
Rotate 180° (clock-wise):
- the first line (from left to right) becomes the last line (from right to left),
- the second line (from left to right) becomes the one but last line (from right to left),
etc.
Rotate 270° (clock-wise):
- the first line (from left to right) becomes the first column (from bottom to top),
- the second line (from left to right) becomes the second column (from bottom to top),
etc.
See also:
Mirror/Rotate : functionality