#1103·h3

Add `cellsToMultiPolygon` function

Author: ajfriendCreated Dec 1, 2025Updated Jun 3, 2026

This is a tracking issue for sub-issues/PRs related to adding a "cells to polygon" function like:

c
H3Error cellsToMultiPolygon(const H3Index *cells, const int64_t numCells, GeoMultiPolygon *out);

This function should fix #1048, #1049, and #1051, while being faster for large cell sets, and allowing us to handle "global" cell sets that produce polygons that cover a majority (or all) of the globe and/or cross the poles or antimeridian.

Compare this function to cellsToLinkedMultiPolygon, which returns a LinkedGeoPolygon. Once working, my plan would be to reimplement cellsToLinkedMultiPolygon as a light wrapper around cellsToMultiPolygon. Though, I would expect most downstream users would prefer cellsToMultiPolygon since GeoMultiPolygon is easier to work with; for example, we'll be able to remove a bunch of code from h3-py when we no longer have to walk through the LinkedGeoPolygon in the binding.

Sub-Issues and PRs

To avoid one giant PR, I've been trying to break this up: