Skip to content

Commit

Permalink
docs: fixing typos
Browse files Browse the repository at this point in the history
  • Loading branch information
jtblack-aws committed Aug 28, 2024
1 parent 8e0b709 commit 58c5868
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/aws/osml/image_processing/map_tileset_wmq.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def _resolution(self, tile_matrix: int) -> float:

def _pixels_to_meters(self, x_pixels: float, y_pixels: float, tile_matrix: int) -> tuple[float, float]:
"""
Convert an x, y location in pixels to x (east), y (nort) location in meters. This includes shifting the
Convert an x, y location in pixels to x (east), y (north) location in meters. This includes shifting the
origin for the image pixels (0, 0) in upper left corner to the origin in meters (0, 0) in the center of the
image.
Expand All @@ -110,7 +110,7 @@ def _pixels_to_meters(self, x_pixels: float, y_pixels: float, tile_matrix: int)
def _meters_to_pixels(self, x_meters: float, y_meters: float, tile_matrix: int) -> tuple[float, float]:
"""
Convert an x (east), y (north) location in meters to x, y location in pixels. This includes shifting the (0, 0)
origin in meters from the cetner of the image to the upper left corner (0, 0) in image pixels.
origin in meters from the center of the image to the upper left corner (0, 0) in image pixels.
:param x_meters: the x location in meters
:param y_meters: the y location in meters
Expand All @@ -124,7 +124,7 @@ def _meters_to_pixels(self, x_meters: float, y_meters: float, tile_matrix: int)

def _pixels_to_tile(self, x_pixels: float, y_pixels: float) -> tuple[int, int]:
"""
This function converts x, y pixel coordinates to col, rol tile indexes.
This function converts x, y pixel coordinates to col, row tile indexes.
:param x_pixels: the x location in pixels
:param y_pixels: the y location in pixels
Expand Down

0 comments on commit 58c5868

Please sign in to comment.