mapbox-java
mapbox-java copied to clipboard
Implementation difference between geojson js vs geojson java
This issue is raised from PR #1075 .
- In the js implementation of
geojson
, theproperties
value of aFeature
can be empty, but in the java implementation, an empty properties field is ignored:
https://github.com/mapbox/mapbox-java/blob/2130ea708c72ef8b98aeb02102554d7dc32606a0/services-geojson/src/main/java/com/mapbox/geojson/Feature.java#L280
- When converting js version of
geojson
to the java version, the precision of coordinates has been reduced, i.e. from102.227783203125
to102.2277832
. This issue was introduced in #938 . It seems the precision is trimed due to performance consideration.
This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.