Skip to content

Commit

Permalink
Merge pull request python-rasters#25 from gregory-halverson-jpl/main
Browse files Browse the repository at this point in the history
fixing point extraction
  • Loading branch information
gregory-halverson-jpl authored Nov 6, 2024
2 parents 081e399 + 96d3d3e commit 333ce61
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
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.3.4"
version = "1.3.5"
description = "raster processing toolkit"
readme = "README.md"
authors = [
Expand Down
4 changes: 3 additions & 1 deletion rasters/raster.py
Original file line number Diff line number Diff line change
Expand Up @@ -974,7 +974,7 @@ def to_point(self, point: Point):
return np.nan

index = self.geometry.index_point(point)
value = self.array[index]
value = self.array[index].item()

return value

Expand Down Expand Up @@ -1101,6 +1101,8 @@ def to_geometry(
kd_tree: KDTree = None,
nodata: Any = None,
**kwargs) -> Raster:
from .point import Point

if nodata is None:
nodata = self.nodata

Expand Down
2 changes: 1 addition & 1 deletion rasters/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.3.4
1.3.5

0 comments on commit 333ce61

Please sign in to comment.