~ubuntu-branches/ubuntu/raring/osmpbf/raring-proposed

« back to all changes in this revision

Viewing changes to src/fileformat.proto

  • Committer: Bazaar Package Importer
  • Author(s): Giovanni Mascellani
  • Date: 2011-01-12 12:38:27 UTC
  • Revision ID: james.westby@ubuntu.com-20110112123827-zalmlqivetmww0jj
Tags: upstream-1.1
ImportĀ upstreamĀ versionĀ 1.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/** Copyright (c) 2010 Scott A. Crosby. <scott@sacrosby.com>
 
2
 
 
3
   This program is free software: you can redistribute it and/or modify
 
4
   it under the terms of the GNU Lesser General Public License as 
 
5
   published by the Free Software Foundation, either version 3 of the 
 
6
   License, or (at your option) any later version.
 
7
 
 
8
   This program is distributed in the hope that it will be useful,
 
9
   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
10
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
11
   GNU General Public License for more details.
 
12
 
 
13
   You should have received a copy of the GNU General Public License
 
14
   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
15
 
 
16
*/
 
17
 
 
18
option java_package = "crosby.binary";
 
19
package OSMPBF;
 
20
 
 
21
//protoc --java_out=../.. fileformat.proto
 
22
 
 
23
 
 
24
//
 
25
//  STORAGE LAYER: Storing primitives.
 
26
//
 
27
 
 
28
message Blob {
 
29
  optional bytes raw = 1; // No compression
 
30
  optional int32 raw_size = 2; // When compressed, the uncompressed size
 
31
 
 
32
  // Possible compressed versions of the data.
 
33
  optional bytes zlib_data = 3;
 
34
 
 
35
  // PROPOSED feature for LZMA compressed data. SUPPORT IS NOT REQUIRED.
 
36
  optional bytes lzma_data = 4;
 
37
 
 
38
  // Formerly used for bzip2 compressed data. Depreciated in 2010.
 
39
  optional bytes OBSOLETE_bzip2_data = 5 [deprecated=true]; // Don't reuse this tag number.
 
40
}
 
41
 
 
42
/* A file contains an sequence of fileblock headers, each prefixed by
 
43
their length in network byte order, followed by a data block
 
44
containing the actual data. types staring with a "_" are reserved.
 
45
*/
 
46
 
 
47
message BlobHeader {
 
48
  required string type = 1;
 
49
  optional bytes indexdata = 2;
 
50
  required int32 datasize = 3;
 
51
}
 
52
 
 
53