mapbox / mapbox/mapbox-java

Add turf.difference and turf.union

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

Nobody has claimed this yet.

jira-sync-complete
Dominant language
Java
Stars
438
Forks
117
PR merge metrics
No merged PRs in 30d

Description

Hello, this port is very nice overall but it would be nice if it could have the difference and union transform operations. We have a product using turfJs and we have a new product that is processing a shape file and converting it to t geoJson. Part of this is calculating the area, we want to match the area calculation algorithm to match our js implementation but the lack of the difference and union operations is preventing us from doing so at the moment.

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.

Research direction

Start by locating the existing Turf and GeoJSON operation entry points in the Java SDK, then compare them with the Turf.js difference and union behavior. Use the shape-file to GeoJSON and area-calculation use case as the acceptance context; done means both operations are available and produce matching results for that workflow.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.