Skip to content

Adds support for the A5 dggs#71

Merged
alpha-beta-soup merged 3 commits into
mainfrom
a5
May 14, 2026
Merged

Adds support for the A5 dggs#71
alpha-beta-soup merged 3 commits into
mainfrom
a5

Conversation

@alpha-beta-soup
Copy link
Copy Markdown
Member

Closes #68 by adding support for the A5 DGGS.

A5's polygon_to_cells operates on a single ring, so the function is called multiple times in the presence of holes; the cells representing each hole are then subtracted from the primary set.

The same function also returns a compacted set. Although it would be useful to retain the compacted set and avoid uncompact, the issue in this case is that the user-defined parent resolution -pr sets an upper bound on the compaction, but the function does not have a limit.

Following the existing codebase, hex strings are used throughout. This should be avoided in the future, and a user should be able to specify the desired output type.

@alpha-beta-soup
Copy link
Copy Markdown
Member Author

Sample input:
Screenshot From 2026-05-14 11-56-31

--geo polygon, shown with parent cell IDs in colour:
Screenshot From 2026-05-14 11-50-58

--geo polygon --compact, shown with parent cells IDs in colour:
Screenshot From 2026-05-14 11-57-30

--geo point --compact --keep_attributes, shown with a land cover class in colour:
Screenshot From 2026-05-14 11-56-13

--geo polygon --compact --keep_attributes, shown with a land cover class in colour:
Screenshot From 2026-05-14 11-53-03

@alpha-beta-soup alpha-beta-soup merged commit 2ff760d into main May 14, 2026
4 checks passed
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.

Add support for A5

1 participant