|
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"Data Structures | |
| struct | db_config |
| struct | osm_protobufdb_context |
Macros | |
| #define | insert(struct, member, pos) |
Functions | |
| static int | osm_protobufdb_write_blob (OSMPBF__Blob *blob, FILE *out) |
| static int | osm_protobufdb_finish_block (struct osm_protobufdb_context *ctx) |
| static int | osm_protobufdb_start_block (struct osm_protobufdb_context *ctx, int blocknum) |
| static int | osm_protobufdb_start_group (struct osm_protobufdb_context *ctx, int groupnum) |
| static int | osm_protobufdb_insert_node (long long id, OSMPBF__PrimitiveGroup *pg) |
| static void | osm_protobufdb_modify_node (OSMPBF__Node *node, OSMPBF__Info *info, int pos, OSMPBF__PrimitiveGroup *pg) |
| static int | osm_protobufdb_insert_way (long long id, OSMPBF__PrimitiveGroup *pg) |
| static void | osm_protobufdb_modify_way (OSMPBF__Way *way, OSMPBF__Info *info, int pos, OSMPBF__PrimitiveGroup *pg) |
| static int | osm_protobufdb_insert_relation (long long id, OSMPBF__PrimitiveGroup *pg) |
| static void | osm_protobufdb_modify_relation (OSMPBF__Relation *relation, OSMPBF__Info *info, int pos, OSMPBF__PrimitiveGroup *pg) |
| static int | osm_protobufdb_string (struct osm_protobufdb_context *ctx, char *str) |
| static int | osm_protobufdb_finish_file (struct osm_protobufdb_context *ctx) |
| static int | osm_protobufdb_start_file (struct osm_protobufdb_context *ctx, int type, int num) |
| static void | test (void) |
| static void | finish (void) |
| static long long | osm_protobufdb_timestamp (char *str) |
| static void | osm_protobufdb_parse_info (struct osm_protobufdb_context *ctx, char *str) |
| static int | osm_protobufdb_parse_node (struct osm_protobufdb_context *ctx, char *str) |
| static int | osm_protobufdb_end_node (struct osm_protobufdb_context *ctx) |
| static int | osm_protobufdb_parse_way (struct osm_protobufdb_context *ctx, char *str) |
| static int | osm_protobufdb_end_way (struct osm_protobufdb_context *ctx) |
| static int | osm_protobufdb_parse_relation (struct osm_protobufdb_context *ctx, char *str) |
| static int | osm_protobufdb_end_relation (struct osm_protobufdb_context *ctx) |
| static int | osm_protobufdb_parse_tag (struct osm_protobufdb_context *ctx, char *str) |
| static int | osm_protobufdb_parse_nd (struct osm_protobufdb_context *ctx, char *str) |
| static int | osm_protobufdb_parse_member (struct osm_protobufdb_context *ctx, char *str) |
| int | osm_protobufdb_load (FILE *in, char *dir) |
Variables | |
| static double | latlon_scale =10000000.0 |
| struct db_config | db_config |
| struct osm_protobufdb_context | context |
| #define insert | ( | struct, | |
| member, | |||
| pos | |||
| ) |
|
static |
References osm_protobufdb_finish_file().
Referenced by org.navitproject.navit.NavitAddressSearchActivity::finishAddressSearch(), org.navitproject.navit.NavitDownloadSelectMapActivity::onChildClick(), org.navitproject.navit.NavitAddressSearchActivity::onCreate(), org.navitproject.navit.NavitDownloadSelectMapActivity::onCreate(), osm_protobufdb_load(), org.navitproject.navit.FileBrowserActivity::returnDirectoryFinishActivity(), and org.navitproject.navit.FileBrowserActivity::returnFileFinishActivity().
|
static |
|
static |
|
static |
|
static |
|
static |
References osm_protobufdb_context::current_file, osm_protobufdb_context::f, and osm_protobufdb_finish_block().
Referenced by finish(), and osm_protobufdb_start_file().
|
static |
References insert, nodes, and p.
Referenced by osm_protobufdb_end_node().
|
static |
Referenced by osm_protobufdb_end_relation().
|
static |
Referenced by osm_protobufdb_end_way().
| int osm_protobufdb_load | ( | FILE * | in, |
| char * | dir | ||
| ) |
References BUFFER_SIZE, finish(), osm_protobufdb_end_node(), osm_protobufdb_end_relation(), osm_protobufdb_end_way(), osm_protobufdb_parse_member(), osm_protobufdb_parse_nd(), osm_protobufdb_parse_node(), osm_protobufdb_parse_relation(), osm_protobufdb_parse_tag(), osm_protobufdb_parse_way(), p, processed_nodes, processed_relations, processed_ways, sig_alrm(), size, and test().
Referenced by main().
|
static |
References info, and startup::pos.
Referenced by osm_protobufdb_end_node().
|
static |
References info, and startup::pos.
Referenced by osm_protobufdb_end_relation().
|
static |
References info, and startup::pos.
Referenced by osm_protobufdb_end_way().
|
static |
|
static |
References BUFFER_SIZE, osm_protobufdb_context::in_relation, osm_protobufdb_string(), osm_xml_get_attribute(), osm_protobufdb_context::r, and type.
Referenced by osm_protobufdb_load().
|
static |
References BUFFER_SIZE, osm_protobufdb_context::in_way, osm_xml_get_attribute(), and osm_protobufdb_context::w.
Referenced by osm_protobufdb_load().
|
static |
References osm_protobufdb_context::in_node, lat, latlon_scale, osm_protobufdb_context::n, db_config::node_ids_per_blob, db_config::node_ids_per_file, db_config::node_ids_per_group, osm_protobufdb_parse_info(), osm_protobufdb_start_block(), osm_protobufdb_start_file(), osm_protobufdb_start_group(), and osm_xml_get_attribute().
Referenced by osm_protobufdb_load().
|
static |
References osm_protobufdb_context::in_relation, osm_protobufdb_parse_info(), osm_protobufdb_start_block(), osm_protobufdb_start_file(), osm_protobufdb_start_group(), osm_xml_get_attribute(), osm_protobufdb_context::r, db_config::relation_ids_per_blob, db_config::relation_ids_per_file, and db_config::relation_ids_per_group.
Referenced by osm_protobufdb_load().
|
static |
References BUFFER_SIZE, osm_protobufdb_context::in_node, osm_protobufdb_context::in_relation, osm_protobufdb_context::in_way, osm_protobufdb_context::n, osm_protobufdb_string(), osm_xml_decode_entities(), osm_xml_get_attribute(), osm_protobufdb_context::r, and osm_protobufdb_context::w.
Referenced by osm_protobufdb_load().
|
static |
References osm_protobufdb_context::in_way, osm_protobufdb_parse_info(), osm_protobufdb_start_block(), osm_protobufdb_start_file(), osm_protobufdb_start_group(), osm_xml_get_attribute(), osm_protobufdb_context::w, db_config::way_ids_per_blob, db_config::way_ids_per_file, and db_config::way_ids_per_group.
Referenced by osm_protobufdb_load().
|
static |
|
static |
References osm_protobufdb_context::active_block, osm_protobufdb_context::current_block, osm_protobufdb_context::current_file, osm_protobufdb_context::f, name, osm_protobufdb_finish_file(), and type.
Referenced by osm_protobufdb_parse_node(), osm_protobufdb_parse_relation(), and osm_protobufdb_parse_way().
|
static |
References osm_protobufdb_context::pb, osm_protobufdb_context::pg, and osm_protobufdb_context::string_hash.
Referenced by osm_protobufdb_parse_node(), osm_protobufdb_parse_relation(), and osm_protobufdb_parse_way().
|
static |
References st, osm_protobufdb_context::st, osm_protobufdb_context::string_hash, and value.
Referenced by osm_protobufdb_parse_info(), osm_protobufdb_parse_member(), and osm_protobufdb_parse_tag().
|
static |
Referenced by osm_protobufdb_parse_info().
|
static |
Referenced by osm_protobufdb_finish_block().
|
static |
Referenced by osm_protobufdb_load().
| struct osm_protobufdb_context context |
|
static |
Referenced by osm_protobufdb_parse_node().