Skip to content

Commit

Permalink
Fix Tile.flipHorizontal for floating point tiles
Browse files Browse the repository at this point in the history
  • Loading branch information
echeipesh committed Jan 3, 2018
1 parent b322b36 commit 872ff17
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/CHANGELOG.rst
Expand Up @@ -25,7 +25,7 @@ Fixes

- `GeoTiffSegmentLayout.getIntersectingSegments bounds checking <https://github.com/locationtech/geotrellis/pull/2534>`__
- `Fix for area of vectorizer that can throw topology exceptions <https://github.com/locationtech/geotrellis/pull/2530>`__

- `Fix Tile.flipHorizontal for floating point tiles <https://github.com/locationtech/geotrellis/pull/2535>`__

1.2.0
-----
Expand Down
Expand Up @@ -115,8 +115,8 @@ trait TransformTileMethods extends TransformMethods[Tile] {
} else {
cfor(0)(_ < cols, _ + 1) { col =>
cfor(0)(_ < rows, _ + 1) { row =>
tile.setDouble(col, rows - 1 - row, tile.getDouble(col, row))
tile.setDouble(col, row, tile.getDouble(col, rows - 1 - row))
tile.setDouble(col, rows - 1 - row, self.getDouble(col, row))
tile.setDouble(col, row, self.getDouble(col, rows - 1 - row))
}
}
}
Expand Down

0 comments on commit 872ff17

Please sign in to comment.