From dd7d190be14469fa812715ec90b44ebf9de5c637 Mon Sep 17 00:00:00 2001 From: AJ Friend Date: Thu, 26 Sep 2024 15:51:40 -0700 Subject: [PATCH] passing tests --- pyproject.toml | 2 +- src/h3/_cy/latlng.pyx | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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(