Skip to content

Add cellsToMultiPolygon function #1103

Description

@ajfriend

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

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions