mapbox / geobuf

A compact binary encoding for geographic data.
ISC License
968 stars 84 forks source link

[v0.2.x] Encode numeric properties as double #64

Closed rclark closed 8 years ago

rclark commented 8 years ago

This preserves precision of large numbers in geojson.properties.

cc @mourner @mick @mcwhittemore

mcwhittemore commented 8 years ago

@rclark should there be a test to confirm the value is the same?

rclark commented 8 years ago

@mcwhittemore this? https://github.com/mapbox/geobuf/pull/64/files#diff-95cfab5242c8592ddc24d8eeafa93f45R75

I didn't bother checking the float-encoded number for equality because my primary concern was yes/no whether it could be decoded at all. I can go a step deeper.