Skip to content

Adding CellsToMultiPolygon#70

Merged
jogly merged 5 commits intouber:masterfrom
zachcoleman:zcoleman/adding-cells-to-multipolygon
Aug 12, 2024
Merged

Adding CellsToMultiPolygon#70
jogly merged 5 commits intouber:masterfrom
zachcoleman:zcoleman/adding-cells-to-multipolygon

Conversation

@zachcoleman
Copy link
Collaborator

Took a slightly different approach with this to build up a slice of GeoPolygons instead of a linked list. This felt more idiomatic to Go.

@zachcoleman
Copy link
Collaborator Author

Curious what the thoughts are on repeat cells. The C API states in documentation "It is expected that all hexagons in the set have the same resolution and that the set contains no duplicates. Behavior is undefined if duplicates or multiple resolutions are present, and the algorithm may produce unexpected or invalid output."

We can check against this and/or deduplicate cells as well, but I have just added the caveat to the docstring for now.

isaacbrodsky
isaacbrodsky previously approved these changes Aug 9, 2024
@coveralls
Copy link

coveralls commented Aug 9, 2024

Pull Request Test Coverage Report for Build 10340944716

Details

  • 30 of 30 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.6%) to 95.833%

Totals Coverage Status
Change from base Build 4495800687: 0.6%
Covered Lines: 529
Relevant Lines: 552

💛 - Coveralls

Copy link
Collaborator

@jogly jogly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

excellent!

@jogly jogly merged commit 0a46771 into uber:master Aug 12, 2024
@zachcoleman zachcoleman deleted the zcoleman/adding-cells-to-multipolygon branch February 11, 2025 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants