diff --git a/pyproject.toml b/pyproject.toml index 77aa510..dd8c933 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -38,7 +38,7 @@ dependencies = [ "cftime", "pyarrow", "fastparquet", - "h3", + "h3==4.1.0", "netCDF4", "scipy", "rasterio", diff --git a/src/openeo_gfmap/manager/job_splitters.py b/src/openeo_gfmap/manager/job_splitters.py index e22cb11..da2ff90 100644 --- a/src/openeo_gfmap/manager/job_splitters.py +++ b/src/openeo_gfmap/manager/job_splitters.py @@ -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