Convex Hull of One Point
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- java
调研方向
从 OperatorConvexHull.local().execute 开始,使用 issue 中所示的 OnePointCursor 测试,并检查单个 Point 是如何处理的。运行或重现 testOnePoint;当凸包结果是一个非空的退化多边形且断言通过时,即视为完成。
由索引模型根据 Issue 内容生成。
描述
Expected: non-empty degenerate polygon.
Actual: empty geometry.
Is there a different way I should be calling the convex-hull operator?
Relates SF4H-181.
private static class OnePointCursor extends GeometryCursor {
private boolean flag = true;
OnePointCursor() {}
public Geometry next() {
if (flag) {
flag = false;
return new Point(1.2, 3.4);
} else
return null;
}
public int getGeometryID() {
throw new UnsupportedOperationException();
}
}
@Test
public static void testOnePoint() {
GeometryCursor geomCursor = new OnePointCursor();
GeometryCursor convexResult = OperatorConvexHull.local().execute(geomCursor, true, null);
Geometry result = convexResult.next();
System.err.println(result); // {"rings":[]}
assertFalse(result.isEmpty()); // junit.framework.AssertionFailedError
}
cc @JordanMLee
- 主要语言
- Java
- 星标
- 710
- 派生
- 268
- 平均合并
- 7 天 23 小时
- 30 天内合并 PR
- 1
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Esri/geometry-api-java 的其他 Issue
-
GeometryEngine.Difference throws GeometryException: internal error for closed polyline touching endpoint可能已有人在做 @DavidHollman 于 26 天前认领。 未关闭bug fixed_to_verify
Esri/geometry-api-java#328 · 3 条评论 · 已指派 1 人 ·
-
难度 5/5 一周以上 新手友好度 35/100
Esri/geometry-api-java#324 · 17 条评论 · 1 个 reaction ·
-
难度 4/5 3-5 天 新手友好度 35/100
Esri/geometry-api-java#321 · 1 条评论 ·
-
难度 3/5 1-2 天 新手友好度 30/100
Esri/geometry-api-java#320 · 1 条评论 ·
-
cannot reproduce
难度 4/5 3-5 天 新手友好度 35/100
Esri/geometry-api-java#316 · 5 条评论 ·
查看 Esri/geometry-api-java 的全部 Issue
相似的 Issue
-
Clarify Javadoc for Logger methods taking Object... arguments with regards to Throwable detection未关闭
难度 2/5 1-3 小时 新手友好度 68/100
-
难度 1/5 1-3 小时 新手友好度 88/100
-
[Bug] The shared instance selector's placeholder and no-match text ignore the display language可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 90/100
apache/rocketmq-dashboard#5561 ·
维护者通常 3 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
test(setup): GitHub configuration tests fail when the temp path is long enough for YAML folding可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭bug good first issue help wanted priority medium size S
难度 2/5 1-3 小时 新手友好度 84/100
martin-francois/symphony-trello#776 · 1 条评论 ·
维护者通常 1 天内回复