esrijson to geojson Exception
还没有人认领这个 Issue。
评估
调研方向
从附带的 EsriJson.json 和 GeoJson.json 开始,然后通过 createGeometryByJson 和 getGeoJson 重现转换过程。跟踪 GeometryEngine 的转换调用,包括 geoJsonToGeometry 和 geometryToGeoJson,并将结果与 arcgisToGeoJSON 方法进行比较。当提供的输入产生非空几何体,或不兼容性已得到明确记录时,即视为完成。
由索引模型根据 Issue 内容生成。
描述
I have an esrijson and when converting it to geojson, I found that the geometry returned by createGeometryByGeoJson is empty. Is there any other way to convert it to geojson?
I can successfully convert using https://github.com/Esri/arcgis-to-geojson-utils arcgisToGeoJSON method.
The code example is as follows:
public String EsriJsonToGeoJson(String esri_json){
Geometry geometry = createGeometryByJson(esri_json);
return getGeoJson(geometry);
}
private Geometry createGeometryByGeoJson(String geojson) {
return GeometryEngine.geoJsonToGeometry(geojson, WktExportFlags.wktExportDefaults, Geometry.Type.Unknown).getGeometry();
}
private String getGeoJson(Geometry geometry) {
return GeometryEngine.geometryToGeoJson(geometry);
}
The data example is as follows:
GeoJson.json
- 主要语言
- 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 于 24 天前认领。 未关闭bug fixed_to_verify
Esri/geometry-api-java#328 · 3 条评论 · 已指派 1 人 ·
-
难度 5/5 一周以上 新手友好度 35/100
Esri/geometry-api-java#324 · 17 条评论 · 1 个 reaction ·
-
难度 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 条评论 ·
-
难度 4/5 3-5 天 新手友好度 35/100
Esri/geometry-api-java#302 · 1 条评论 ·
查看 Esri/geometry-api-java 的全部 Issue
相似的 Issue
-
type: possible bug
难度 2/5 1-3 小时 新手友好度 72/100
-
难度 2/5 1-3 小时 新手友好度 72/100
grimmory-tools/grimmory#2850 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 90/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
aoqia194/leaf-loader#19 ·
-
难度 2/5 1-3 小时 新手友好度 84/100
apache/streampark#4521 ·