From b6cf2110eca09d0a30ed80409c084b7fcdcab853 Mon Sep 17 00:00:00 2001 From: Peter Date: Wed, 25 May 2011 21:28:43 +0200 Subject: [PATCH] show primblock metainfo --- tools/osmpbf-outline.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/osmpbf-outline.cpp b/tools/osmpbf-outline.cpp index f032d3b..af357d5 100644 --- a/tools/osmpbf-outline.cpp +++ b/tools/osmpbf-outline.cpp @@ -277,6 +277,12 @@ int main(int argc, char *argv[]) { // parse the PrimitiveBlock from the blob primblock.ParseFromArray(unpack_buffer, sz); + // tell about the block's meta info + debug(" granularity: %u", primblock.granularity()); + debug(" lat_offset: %u", primblock.lat_offset()); + debug(" lon_offset: %u", primblock.lon_offset()); + debug(" date_granularity: %u", primblock.date_granularity()); + // tell about the stringtable debug(" stringtable: %u items", primblock.stringtable().s_size());