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.12.3"
version = "1.13.0"
description = "raster processing toolkit"
readme = "README.md"
authors = [
Expand Down
26 changes: 26 additions & 0 deletions rasters/point.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,32 @@ def y(self) -> float:
"""
return self.geometry.y

@property
def lat(self) -> float:
"""
Get the latitude of the point.

Latitude is the y-coordinate in a geographic coordinate system (like WGS84),
representing the north-south position on the Earth's surface in decimal degrees.

Returns:
float: The latitude value.
"""
return self.latlon.y

@property
def lon(self) -> float:
"""
Get the longitude of the point.

Longitude is the x-coordinate in a geographic coordinate system (like WGS84),
representing the east-west position on the Earth's surface in decimal degrees.

Returns:
float: The longitude value.
"""
return self.latlon.x

def buffer(
self,
distance,
Expand Down