diff --git a/pyproject.toml b/pyproject.toml index 7507a6ca..02219b09 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = 'scikit_build_core.build' [project] name = 'h3' -version = '4.0.0b7' +version = '4.1.0b1' description = "Uber's hierarchical hexagonal geospatial indexing system" readme = 'readme.md' license = {file = 'LICENSE'} diff --git a/src/h3/_cy/latlng.pyx b/src/h3/_cy/latlng.pyx index c3e0cdb8..493b85ac 100644 --- a/src/h3/_cy/latlng.pyx +++ b/src/h3/_cy/latlng.pyx @@ -157,6 +157,10 @@ def polygon_to_cells(outer, int res, holes=None): uint64_t n check_res(res) + + if not outer: + return H3MemoryManager(0).to_mv() + gp = GeoPolygon(outer, holes=holes) check_for_error( diff --git a/src/h3lib b/src/h3lib index 46a581c9..5c911491 160000 --- a/src/h3lib +++ b/src/h3lib @@ -1 +1 @@ -Subproject commit 46a581c905b2747c861aa1683125276501f68a3b +Subproject commit 5c91149104ac02c4f06faa4fc557e69cf6b131ef