Add turf intersect feature for polygonal intersection

Open
#1,468 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
java
Domain
data

Research direction

Start by reviewing the Turf intersection behavior described in the issue and the linked geok library for polygon and multi-polygon handling. Done means providing polygonal intersection for two supported geometries, returning null when they do not intersect, with behavior checked against representative Android use cases.

Written by the indexing model from the issue text.

Description

jira-sync-complete

I would like to propose a new feature for turf java, namely polygonal intersection, which is as explained in the turf doc as a method that:

Takes two polygon or multi-polygon geometries and finds their polygonal intersection. If they don't intersect, returns null.

Screenshot 2022-07-27 at 11 57 24

It might help on various occasions while dealing with area-specific features on Android apps, for example, intersecting camera bounds with certain polygons can make a huge deal in making area-aware functionalities.

While looking for such a solution I've encountered geok library:
https://github.com/piruin/geok - written in Kotlin, that apparently achieves this goal, so maybe it may be some kind of inspiration.

Dominant language
Java
Stars
438
Forks
117
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 mapbox/mapbox-java

All issues in mapbox/mapbox-java

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.