Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

[Feature Req] Polyfill for multi level inclusion/exclusion

Open
#35 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
java

Research direction

No implementation file, test, or entry point is named. Start by reviewing the existing polyfill API and the S2Polygon inclusion rule described in the issue; done should mean that nested inclusions and exclusions are supported without requiring explicit holes.

Written by the indexing model from the issue text.

Description

Curious if there is any plan to add polyfill support for more complex geofences that have inclusions within 'holes'

For instance in s2, inclusion/exclusion is determined by the number of geofences a point is contained by and therefore doesn't require an explicit 'holes' input in the api.

Snippet from s2 java comments:
/*

  • An S2Polygon is an S2Region object that represents a polygon. A polygon
  • consists of zero or more {@link S2Loop loops} representing "shells" and
  • "holes". All loops should be oriented CCW, i.e. the shell or hole is on the
  • left side of the loop. Loops may be specified in any order. A point is
  • defined to be inside the polygon if it is contained by an odd number of
  • loops.
    */
Dominant language
Java
Stars
333
Forks
68
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from uber/h3-java

All issues in uber/h3-java

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.