[openstreetmap/openstreetmap-website] Increase may key and value max length (#2025)

Yves Pratter notifications at github.com
Sat Jul 25 14:44:01 UTC 2020


> Planet generation: will create incompatible pbf or fail.

The length of a serialized object is coded as a variable length integer:
_"Protocol Buffers use a variable-bit encoding for integers. An integer is encoded at 7 bits per byte, where the high bit indicates whether or not the next byte is to be read.…"_
[Source](https://wiki.openstreetmap.org/wiki/PBF_Format#Low_level_encoding)

So the size of a key or a value is "unlimited" in practice.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/2025#issuecomment-663863238
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20200725/ac4d0afe/attachment.htm>


More information about the rails-dev mailing list