aboutsummaryrefslogtreecommitdiffstats
path: root/pbf2db/fileformat.proto
diff options
context:
space:
mode:
authorslomo <steve.harrison@gmx.net>2011-01-12 20:37:16 +0100
committerslomo <steve.harrison@gmx.net>2011-01-12 20:37:16 +0100
commit2cb5dd752037ff81329578d1514dac7de0e3ee16 (patch)
tree58c043051b7f9e49c54db57ab65dec097281a0cc /pbf2db/fileformat.proto
parent8758b959552cc282b2d9b72055130958a8f9101b (diff)
downloadosm-xapi-2cb5dd752037ff81329578d1514dac7de0e3ee16.tar.gz
osm-xapi-2cb5dd752037ff81329578d1514dac7de0e3ee16.tar.xz
osm-xapi-2cb5dd752037ff81329578d1514dac7de0e3ee16.zip
merged code from old repo
Diffstat (limited to 'pbf2db/fileformat.proto')
-rw-r--r--pbf2db/fileformat.proto49
1 files changed, 49 insertions, 0 deletions
diff --git a/pbf2db/fileformat.proto b/pbf2db/fileformat.proto
new file mode 100644
index 0000000..f1b540a
--- /dev/null
+++ b/pbf2db/fileformat.proto
@@ -0,0 +1,49 @@
+/** Copyright (c) 2010 Scott A. Crosby. <scott@sacrosby.com>
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation, either version 3 of the
+ License, or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+*/
+
+package OSMPBF;
+
+//
+// STORAGE LAYER: Storing primitives.
+//
+
+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;
+
+ // PROPOSED feature for LZMA compressed data. SUPPORT IS NOT REQUIRED.
+ optional bytes lzma_data = 4;
+
+ // 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 in network byte order, followed by a data block
+containing the actual data. types staring with a "_" are reserved.
+*/
+
+message BlobHeader {
+ required string type = 1;
+ optional bytes indexdata = 2;
+ required int32 datasize = 3;
+}
+
+