mapbox / mapbox/mapbox-java

Add Turf buffer method

未关闭
#987 7 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

Feature Turf
主要语言
Java
星标
438
派生
117
PR 合并指标
30 天内没有已合并 PR

描述

Turf.js has a [`Turf#buffer`](http://turfjs.org/docs/#buffer) method that would be useful for defining offline map regions. An example use case in navigation would be defining a buffer around a route geometry for an offline download:

![buffer](https://user-images.githubusercontent.com/8434572/55410157-618e8780-5531-11e9-83b3-d532aa730209.png)

@zugaldia mentioned that this may not be a straightforward port to java, possibly necessitating bringing in a third party [library](https://github.com/locationtech/jts) to get the job done. We need to look into this a bit further / discuss if that makes sense.

cc @osana @kevinkreiser

贡献指南

打开贡献指南

从这里开始

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

调研方向

首先检查 Turf#buffer 和关联的 LocationTech JTS 库,以了解所需的几何行为,以及是否可以从此 Java SDK 中使用它。然后确定适用于 buffer 方法的 SDK 入口点,并与维护者讨论依赖项和 API 的选择。当项目就定义带缓冲区的离线地图区域的实现路径达成一致时,即视为完成。

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

评估

技术栈
java
领域
backend
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

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