navit
0.5.3-trunk
|
#include <string.h>
#include <stdlib.h>
#include <math.h>
#include <unistd.h>
#include <time.h>
#include <zlib.h>
#include "maptool.h"
#include "debug.h"
#include "linguistics.h"
#include "file.h"
#include "fileformat.pb-c.h"
#include "osmformat.pb-c.h"
Macros | |
#define | MAX_HEADER_LENGTH 1024 * 64 |
#define | MAX_BLOB_LENGTH 1024 * 1024 * 32 |
#define | SANITY_CHECK_LENGTH(length, max_length) |
Functions | |
static OSMPBF__BlobHeader * | read_header (FILE *f) |
static OSMPBF__Blob * | read_blob (OSMPBF__BlobHeader *header, FILE *f, unsigned char *buffer) |
static unsigned char * | uncompress_blob (OSMPBF__Blob *blob) |
static int | get_string (char *buffer, int buffer_size, OSMPBF__PrimitiveBlock *primitive_block, int id, int escape) |
static void | process_osmheader (OSMPBF__Blob *blob, unsigned char *data) |
static void | process_tag (OSMPBF__PrimitiveBlock *primitive_block, int key, int val) |
static void | process_dense (OSMPBF__PrimitiveBlock *primitive_block, OSMPBF__DenseNodes *dense, struct maptool_osm *osm) |
static void | process_way (OSMPBF__PrimitiveBlock *primitive_block, OSMPBF__Way *way, struct maptool_osm *osm) |
static void | process_relation (OSMPBF__PrimitiveBlock *primitive_block, OSMPBF__Relation *relation, struct maptool_osm *osm) |
static void | process_osmdata (OSMPBF__Blob *blob, unsigned char *data, struct maptool_osm *osm) |
int | map_collect_data_osm_protobuf (FILE *in, struct maptool_osm *osm) |
Variables | |
static double | latlon_scale =10000000.0 |
#define MAX_BLOB_LENGTH 1024 * 1024 * 32 |
#define MAX_HEADER_LENGTH 1024 * 64 |
#define SANITY_CHECK_LENGTH | ( | length, | |
max_length | |||
) |
|
static |
References buffer_size, data, and p.
Referenced by process_relation(), and process_tag().
int map_collect_data_osm_protobuf | ( | FILE * | in, |
struct maptool_osm * | osm | ||
) |
References data, MAX_BLOB_LENGTH, process_osmdata(), process_osmheader(), read_blob(), read_header(), and uncompress_blob().
Referenced by osm_read_input_data().
|
static |
References lat, latlon_scale, osm_add_node(), osm_end_node(), and process_tag().
Referenced by process_osmdata().
|
static |
References data, process_dense(), process_relation(), and process_way().
Referenced by map_collect_data_osm_protobuf().
|
static |
References data.
Referenced by map_collect_data_osm_protobuf().
|
static |
References get_string(), osm_add_member(), osm_add_relation(), osm_end_relation(), and process_tag().
Referenced by process_osmdata().
|
static |
References get_string(), key, and osm_add_tag().
Referenced by process_dense(), process_relation(), and process_way().
|
static |
References osm_add_nd(), osm_add_way(), osm_end_way(), and process_tag().
Referenced by process_osmdata().
|
static |
References MAX_BLOB_LENGTH, and SANITY_CHECK_LENGTH.
Referenced by map_collect_data_osm_protobuf().
|
static |
References MAX_HEADER_LENGTH, and SANITY_CHECK_LENGTH.
Referenced by map_collect_data_osm_protobuf().
|
static |
Referenced by map_collect_data_osm_protobuf().
|
static |
Referenced by process_dense().