mapbox / geobuf

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

Property indexes #70

Closed jeroen closed 6 years ago

jeroen commented 8 years ago

Within the properties and custom_properties array, the numbers at even indices refer to the position of a key inside repeated string keys. But what are the numbers at odd indices for? It seems they are simply sequent integers? Are they redundant?

mourner commented 6 years ago

Sorry for a late reply. The even indices refer to the values, while odd indices refer to the keys. They will look like sequent integers when there's the same set of keys in the same order in every feature, but that's not always the case in GeoJSON, and we have to preserve order and lack of certain keys.

jeroen commented 6 years ago

Thanks for the answer. After 2 years I have absolutely no recollection anymore what this was about.