mapbox / mapbox/mapbox-java

Add turf intersect feature for polygonal intersection

未关闭
#1,468 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

jira-sync-complete
主要语言
Java
星标
438
派生
117
PR 合并指标
30 天内没有已合并 PR

描述

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.

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先检查 issue 中描述的 Turf 相交行为,以及所链接的用于处理多边形和多多边形的 geok 库。当为两个受支持的几何图形提供多边形相交结果、在它们不相交时返回 null,并针对具有代表性的 Android 使用场景检查行为时,即视为完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
java
领域
data
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。