Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "rasters"
version = "1.13.0"
version = "1.13.1"
description = "raster processing toolkit"
readme = "README.md"
authors = [
Expand Down
10 changes: 8 additions & 2 deletions rasters/point.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,10 @@ def lat(self) -> float:
Returns:
float: The latitude value.
"""
return self.latlon.y
if self.is_geographic:
return self.y
else:
return self.latlon.y

@property
def lon(self) -> float:
Expand All @@ -173,7 +176,10 @@ def lon(self) -> float:
Returns:
float: The longitude value.
"""
return self.latlon.x
if self.is_geographic:
return self.x
else:
return self.latlon.x

def buffer(
self,
Expand Down