Skip to content

Commit

Permalink
extreme nit fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
dabhicusp committed Apr 2, 2024
1 parent d3d1817 commit e1566d0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions xee/ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,8 +432,8 @@ def project(self, bbox: types.BBox) -> types.Grid:
# the min and max extents. Instead, we calculate the translation by
# considering the direction of scaling (positive or negative) along both
# the x and y axes.
translateX = self.scale_x * x_start + (x_min if self.scale_x > 0 else x_max)
translateY = self.scale_y * y_start + (y_min if self.scale_y > 0 else y_max)
translate_x = self.scale_x * x_start + (x_min if self.scale_x > 0 else x_max)
translate_y = self.scale_y * y_start + (y_min if self.scale_y > 0 else y_max)

return {
# The size of the bounding box. The affine transform and project will be
Expand All @@ -443,8 +443,8 @@ def project(self, bbox: types.BBox) -> types.Grid:
'height': height,
},
'affineTransform': {
'translateX': translateX,
'translateY': translateY,
'translateX': translate_x,
'translateY': translate_y,
# Define the scale for each pixel (e.g. the number of meters between
# each value).
'scaleX': self.scale_x,
Expand Down

0 comments on commit e1566d0

Please sign in to comment.