Esri / Esri/geometry-api-java

OperatorExportToGeoJson doesn't export the spatial reference.

Open
#49 0 comments 0 reactions 1 assignee Claimed by @abalog View on GitHub
enhancement
Dominant language
Java
Stars
710
Forks
269
Avg merge
7d 23h
Merged PRs (30d)
1

Description

To reproduce, run OperatorExportToGeoJson.local().execute with exportFlags = GeoJsonExportFlags.geoJsonExportDefaults, spatial reference wkid = 3857, and the following geometry:

{"rings":[[[1600,9082],[1600,8682],[1100,8682],[1100,9082],[1600,9082]]]}

The output looks like this:
{"type":"Polygon","coordinates":[[[1600.0,9082.0],[1600.0,8682.0],[1100.0,8682.0],[1100.0,9082.0],[1600.0,9082.0]]]}

It really would be better to have the spatial reference in the output especially since it is an input parameter.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.