Changes between Initial Version and Version 2 of Ticket #5882
- Timestamp:
- Mar 20, 2015, 1:52:32 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #5882 – Description
initial v2 1 1 Some numeric values in GeoJSON file (e.g. 4.1e-8, 0.00000001) are truncated. 2 2 3 I think the problem is in the conversion from JSON double to JSON string (function json_object_double_to_json_string in ogr/ogrsf_frmts/geojson/libjson/json_object.c): 3 I think the problem is in the conversion from JSON double to JSON string (function json_object_double_to_json_string in ogr/ogrsf_frmts/geojson/libjson/json_object.c): the conversion is done with a `%f` format (by default, 6 digits after the decimal number): 4 5 {{{ 6 size = snprintf(buf, 128, "%f", jso->o.c_double); 7 }}} 4 8 5 9 See attached file "data.json", where the properties are