Skip to content

Commit aa17632

Browse files
Updated job splitter due to h3 API changes
1 parent be7c647 commit aa17632

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ dependencies = [
3838
"cftime",
3939
"pyarrow",
4040
"fastparquet",
41-
"h3",
41+
"h3==4.1.0",
4242
"netCDF4",
4343
"scipy",
4444
"rasterio",

src/openeo_gfmap/manager/job_splitters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def append_h3_index(
113113
geom_col = geom_col.to_crs(epsg=4326)
114114

115115
polygons["h3index"] = geom_col.apply(
116-
lambda pt: h3.geo_to_h3(pt.y, pt.x, grid_resolution)
116+
lambda pt: h3.latlng_to_cell(pt.y, pt.x, grid_resolution)
117117
)
118118
return polygons
119119

0 commit comments

Comments
 (0)