ropensci/geojsonio

Number of digits

Closed this issue · 4 comments

Currently to_json includes 22 digits. The GDAL default is 7.

22 seems excessive to me. Should we reduce it? should it be controllable by an additional argument?

write_geojson methods for sp objects currently allows specification of digits via the precision argument in (default NULL)

Agree to reduce it - I looked over the new GeoJSON spec, and it seems like 6 is a good number, or 7 for this package, not too different.

Great. How about 7, to be consistent with geojsonio::write_json which uses rgdal::writeOGR (so presumably uses GDAL's default 7)?

7 sounds good.

This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue.