From 67d5ae5a1edd2f11fcbb1b9bcbfc6bba0deefb88 Mon Sep 17 00:00:00 2001 From: Scott Crosby Date: Sat, 11 Dec 2010 11:23:28 -0600 Subject: [PATCH] Depreciate lzma and bzip2 compressed blocks. No encoder has ever supported bzip2 or lzma. bzip2 has a poor time/compression ratio, so obsolete it right now. lzma can be considered for future use, so indicate it as a proposed extension. --- src/fileformat.proto | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/fileformat.proto b/src/fileformat.proto index 7c1076d..54be8fe 100644 --- a/src/fileformat.proto +++ b/src/fileformat.proto @@ -11,16 +11,20 @@ package OSMPBF; message Blob { optional bytes raw = 1; // No compression optional int32 raw_size = 2; // When compressed, the uncompressed size + // Possible compressed versions of the data. optional bytes zlib_data = 3; - optional bytes lzma_data = 4; - optional bytes bzip2_data = 5; + + // PROPOSED feature for LZMA compressed data. + // optional bytes lzma_data = 4; // Do not change this tag number. + + // Formerly used for bzip2 compressed data. Depreciated in 2010. + optional bytes OBSOLETE_bzip2_data = 5 [deprecated=true]; // Don't reuse this tag number. } /* A file contains an sequence of fileblock headers, each prefixed by -their length, followed by a data block containing the actual data. -types staring with a "_" are reserved. - +their length in network byte order, followed by a data block +containing the actual data. types staring with a "_" are reserved. */ message BlockHeader {