The SwappyItems Key-Values Store
Classes | Namespaces | Typedefs | Functions | Variables
osmpbfreader.hpp File Reference
#include <stdint.h>
#include <netinet/in.h>
#include <zlib.h>
#include <string.h>
#include <fstream>
#include <iostream>
#include <osmpbf/fileformat.pb.h>
#include <osmpbf/osmformat.pb.h>

Go to the source code of this file.

Classes

struct  CanalTP::Reference
 
struct  CanalTP::warn
 
struct  CanalTP::info
 
struct  CanalTP::fatal
 
struct  CanalTP::Parser< Visitor >
 

Namespaces

 CanalTP
 

Typedefs

typedef std::map< std::string, std::string > CanalTP::Tags
 
typedef std::vector< Reference > CanalTP::References
 

Functions

template<typename Visitor >
void CanalTP::read_osm_pbf (const std::string &filename, Visitor &visitor, bool wayOnly)
 
std::streampos CanalTP::fileSize (const char *filePath)
 
template<typename T >
Tags CanalTP::get_tags (const T &object, const OSMPBF::PrimitiveBlock &primblock)
 

Variables

const int max_blob_header_size = 64 * 1024
 
const int max_uncompressed_blob_size = 32 * 1024 * 1024
 
const int lonlat_resolution = 1000 * 1000 * 1000
 

Variable Documentation

◆ lonlat_resolution

const int lonlat_resolution = 1000 * 1000 * 1000

◆ max_blob_header_size

const int max_blob_header_size = 64 * 1024

◆ max_uncompressed_blob_size

const int max_uncompressed_blob_size = 32 * 1024 * 1024