jeroen / protolite

Fast and Simple Object Serialization to Protocol Buffers
Other
48 stars 9 forks source link

Support geobuf (geojson protobuf) #2

Closed jeroen closed 8 years ago

jeroen commented 8 years ago

See https://github.com/mapbox/geobuf

sckott commented 8 years ago
jeroen commented 8 years ago

Starting a new branch: https://github.com/jeroenooms/protolite/tree/geobuf

jeroen commented 8 years ago

Some notes from analyzing the @mourner JavaScript implementation:

jeroen commented 8 years ago

@sckott I implemented the parser. Could you give this a try? To test, take an arbitrary geojson file and use the npm module to convert it to a proto buffer:

npm install geobuf
json2geobuf geojson.json > geobuf.pb

You can read geobuf.pb in R using protolite::unserialize_geobuf or protolite::geobuf2json.

jeroen commented 8 years ago

This is now fully implemented in protolite 1.4/