mapbox / geobuf

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

Geobuf Index #46

Open mourner opened 9 years ago

mourner commented 9 years ago

Lets discuss indexing. Previous discussion: https://github.com/mapbox/geobuf/issues/27#issuecomment-67220880

I think the solution I'd like to see here is a separate PBF-based format that would come as a separate file coupled with a Geobuf file that would store:

The R-tree serialization should avoid embedded messages because they are hard to decode lazily. I'd imagine one possible solution to be nodes stored as a flat set of messages, with references to children implemented as offset pointers.

district10 commented 9 months ago

I implemented this idea. proto: https://github.com/cubao/geobuf-cpp/blob/dev/geobuf_index.proto

test: https://github.com/cubao/geobuf-cpp/blob/b06e682bae6f04ad9147659edbd8eecb9dfe2d3f/tests/test_geobuf.py#L1918