Skip to content

Commit

Permalink
Merge pull request #167 from Open-EO/job_splitter_bugfix
Browse files Browse the repository at this point in the history
Updated job splitter due to h3 API changes
  • Loading branch information
VincentVerelst authored Oct 18, 2024
2 parents be7c647 + aa17632 commit 5a318cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ dependencies = [
"cftime",
"pyarrow",
"fastparquet",
"h3",
"h3==4.1.0",
"netCDF4",
"scipy",
"rasterio",
Expand Down
2 changes: 1 addition & 1 deletion src/openeo_gfmap/manager/job_splitters.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def append_h3_index(
geom_col = geom_col.to_crs(epsg=4326)

polygons["h3index"] = geom_col.apply(
lambda pt: h3.geo_to_h3(pt.y, pt.x, grid_resolution)
lambda pt: h3.latlng_to_cell(pt.y, pt.x, grid_resolution)
)
return polygons

Expand Down

0 comments on commit 5a318cc

Please sign in to comment.