navit
0.5.3-trunk
|
#include "config.h"
#include "navit_lfs.h"
#include <stdlib.h>
#include <glib.h>
#include <assert.h>
#include <string.h>
#include <signal.h>
#include <stdio.h>
#include <math.h>
#include <errno.h>
#include <getopt.h>
#include <unistd.h>
#include <sys/time.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <zlib.h>
#include "file.h"
#include "item.h"
#include "map.h"
#include "main.h"
#include "zipfile.h"
#include "linguistics.h"
#include "plugin.h"
#include "util.h"
#include "maptool.h"
Data Structures | |
struct | maptool_params |
Macros | |
#define | SLIZE_SIZE_DEFAULT_GB 1 |
Functions | |
static int | assafe_lltoa (long long n, int maxlen, char *buf) |
static int | assafe_strcp2buf (char *str, int maxlen, char *buf) |
static void | progress_time (void) |
static void | progress_memory (void) |
static void | sig_alrm_do (int sig) |
void | sig_alrm (int sig) |
void | sig_alrm_end (void) |
static struct files_relation_processing * | files_relation_processing_new (FILE *line2poi, char *suffix) |
static void | files_relation_processing_destroy (struct files_relation_processing *files_relproc, char *suffix) |
static void | add_plugin (char *path) |
static void | maptool_init (FILE *rule_file) |
static void | usage (void) |
static int | parse_option (struct maptool_params *p, char **argv, int argc, int *option_index) |
static int | start_phase (struct maptool_params *p, char *str) |
static void | exit_with_error (char *error_message) |
static void | osm_read_input_data (struct maptool_params *p, char *suffix) |
static void | osm_count_references (struct maptool_params *p, char *suffix, int clear) |
static void | osm_resolve_coords_and_split_at_intersections (struct maptool_params *p, char *suffix) |
static void | osm_process_way2poi (struct maptool_params *p, char *suffix) |
static void | osm_process_coastlines (struct maptool_params *p, char *suffix) |
static void | osm_process_turn_restrictions (struct maptool_params *p, char *suffix) |
static void | osm_process_multipolygons (struct maptool_params *p, char *suffix) |
static void | maptool_dump (struct maptool_params *p, char *suffix) |
static void | maptool_generate_tiles (struct maptool_params *p, char *suffix, char **filenames, int filename_count, int first, char *suffix0) |
static void | maptool_assemble_map (struct maptool_params *p, char *suffix, char **filenames, char **referencenames, int filename_count, int first, int last, char *suffix0) |
static void | maptool_load_node_table (struct maptool_params *p, int last) |
static void | maptool_load_countries (struct maptool_params *p) |
static void | maptool_load_tilesdir (struct maptool_params *p, char *suffix) |
int | main (int argc, char **argv) |
Variables | |
long long | slice_size =SLIZE_SIZE_DEFAULT_GB*1024ll*1024*1024 |
int | attr_debug_level =1 |
int | ignore_unknown = 0 |
int | thread_count =8 |
GHashTable * | dedupe_ways_hash |
int | phase |
int | slices |
int | unknown_country |
char | ch_suffix [] ="r" |
char * | experimental_feature_description |
int | experimental |
struct buffer | node_buffer |
int | processed_nodes |
int | processed_nodes_out |
int | processed_ways |
int | processed_relations |
int | processed_tiles |
int | overlap =1 |
int | bytes_read |
static long | start_brk |
static struct timespec | start_ts |
static struct plugins * | plugins |
int | debug_ref =0 |
#define SLIZE_SIZE_DEFAULT_GB 1 |
|
static |
References attr::attrs, file_init(), plugin_new(), attr::plugins, plugins, plugins_new(), attr::str, and attr::u.
Referenced by parse_option().
|
static |
References c.
Referenced by progress_memory(), progress_time(), and sig_alrm_do().
|
static |
Referenced by progress_memory(), progress_time(), and sig_alrm_do().
|
static |
References exit.
Referenced by main(), and osm_read_input_data().
|
static |
|
static |
References tempfile().
Referenced by main().
int main | ( | int | argc, |
char ** | argv | ||
) |
References argc, argv, buffer::base, current_to_iso8601(), exit, exit_with_error(), experimental, experimental_feature_description, files_relation_processing_destroy(), files_relation_processing_new(), linguistics_init(), main_init(), buffer::malloced, maptool_assemble_map(), maptool_dump(), maptool_generate_tiles(), maptool_init(), maptool_load_countries(), maptool_load_node_table(), maptool_load_tilesdir(), node_buffer, osm_count_references(), osm_process_coastlines(), osm_process_multipolygons(), osm_process_towns(), osm_process_turn_restrictions(), osm_process_way2poi(), osm_protobufdb_load(), osm_read_input_data(), osm_resolve_coords_and_split_at_intersections(), p, parse_option(), phase, process_associated_streets(), process_binfile(), process_house_number_interpolations(), buffer::size, sort_countries(), start_brk, start_phase(), start_ts, suffixes, tempfile(), tempfile_unlink(), usage(), and maptool_params::ways_split.
|
static |
References add_aux_tiles(), ch_assemble_map(), ch_suffix, exit, index_init(), map_information_attrs, p, phase5(), remove_countryfiles(), attr::str, tempfile(), tempfile_name(), tempfile_unlink(), attr::type, attr::u, write_aux_tiles(), write_countrydir(), zip_close(), zip_destroy(), zip_get_zipnum(), zip_new(), zip_open(), zip_set_compression_level(), zip_set_maxnamelen(), zip_set_timestamp(), zip_set_zip64(), zip_set_zipnum(), zip_write_directory(), zip_write_index(), and zip_info::zipnum.
Referenced by main().
|
static |
References dump(), p, and tempfile().
Referenced by main().
|
static |
References ch_generate_tiles(), ch_suffix, p, phase4(), tempfile(), zip_get_zipnum(), zip_new(), zip_set_timestamp(), zip_set_zip64(), zip_set_zipnum(), and zip_info::zipnum.
Referenced by main().
|
static |
References osm_init(), and plugins_init().
Referenced by main().
|
static |
References load_countries(), and p.
Referenced by main().
|
static |
References load_buffer(), node_buffer, p, sizeof_buffer(), slice_size, and slices.
Referenced by main().
|
static |
References load_tilesdir(), p, and tempfile().
Referenced by main().
|
static |
References clear_node_item_buffer(), load_buffer(), node_buffer, p, ref_ways(), resolve_ways(), save_buffer(), slice_size, slices, tempfile(), tempfile_rename(), and tempfile_unlink().
Referenced by main().
|
static |
References process_coastlines(), and tempfile().
Referenced by main().
|
static |
References p, process_multipolygons(), tempfile(), and tempfile_unlink().
Referenced by main().
|
static |
References p, process_turn_restrictions(), tempfile(), and tempfile_unlink().
Referenced by main().
|
static |
References process_way2poi(), and tempfile().
Referenced by main().
|
static |
References exit, exit_with_error(), flush_nodes(), map_collect_data_osm(), map_collect_data_osm_db(), map_collect_data_osm_o5m(), map_collect_data_osm_protobuf(), map_destroy(), node_buffer, p, phase1_map(), buffer::size, and tempfile().
Referenced by main().
|
static |
References load_buffer(), map_resolve_coords_and_split_at_intersections(), node_buffer, p, slice_size, slices, tempfile(), tempfile_rename(), and tempfile_unlink().
Referenced by main().
|
static |
References add_plugin(), argc, argv, attr_debug_level, attr_from_line(), attr_new_from_text(), attr::attrs, c, dedupe_ways_hash, exit, experimental, ignore_unknown, map_new(), p, startup::pos, slice_size, thread_count, and unknown_country.
Referenced by main().
|
static |
References assafe_lltoa(), assafe_strcp2buf(), dbg, lvl_warning, startup::pos, and start_brk.
Referenced by sig_alrm_do(), and start_phase().
|
static |
References assafe_lltoa(), assafe_strcp2buf(), dbg, lvl_warning, startup::pos, start_ts, and ts.
Referenced by sig_alrm_do(), and start_phase().
void sig_alrm | ( | int | sig | ) |
|
static |
References assafe_lltoa(), assafe_strcp2buf(), dbg, lvl_warning, phase, startup::pos, processed_nodes, processed_nodes_out, processed_relations, processed_tiles, processed_ways, progress_memory(), and progress_time().
Referenced by sig_alrm().
void sig_alrm_end | ( | void | ) |
|
static |
References p, phase, progress_memory(), and progress_time().
Referenced by main().
|
static |
References exit, experimental_feature_description, and SLIZE_SIZE_DEFAULT_GB.
Referenced by main().
int attr_debug_level =1 |
Referenced by osm_add_tag(), and parse_option().
int bytes_read |
Referenced by osm_process_towns(), phase34(), read_item(), and wince_reader_thread().
char ch_suffix[] ="r" |
Referenced by maptool_assemble_map(), and maptool_generate_tiles().
int debug_ref =0 |
GHashTable* dedupe_ways_hash |
Referenced by osm_end_way(), and parse_option().
int experimental |
Indicates if experimental features (if available) were enabled.
Referenced by item_order_by_type(), main(), and parse_option().
char* experimental_feature_description |
int ignore_unknown = 0 |
Referenced by filter_unknown(), and parse_option().
struct buffer node_buffer |
Referenced by allocate_node_item_in_buffer(), clear_node_item_buffer(), flush_nodes(), main(), maptool_load_node_table(), node_buffer_to_hash(), node_item_find_index_in_ordered_list(), node_item_get(), osm_add_node(), osm_count_references(), osm_read_input_data(), osm_resolve_coords_and_split_at_intersections(), and remove_last_node_item_from_buffer().
int overlap =1 |
int phase |
Referenced by CreateBitmapFromXpm(), main(), sig_alrm_do(), and start_phase().
Referenced by add_plugin().
int processed_nodes |
int processed_nodes_out |
Referenced by map_resolve_coords_and_split_at_intersections(), osm_end_node(), osm_process_towns(), phase34(), and sig_alrm_do().
int processed_relations |
Referenced by map_collect_data_osm(), map_resolve_coords_and_split_at_intersections(), osm_process_towns(), osm_protobufdb_load(), phase34(), process_boundaries_setup(), process_multipolygons(), process_multipolygons_finish(), process_multipolygons_setup_worker(), process_turn_restrictions(), process_turn_restrictions_finish(), process_turn_restrictions_setup_worker(), and sig_alrm_do().
int processed_tiles |
int processed_ways |
Referenced by map_collect_data_osm(), map_resolve_coords_and_split_at_intersections(), osm_process_towns(), osm_protobufdb_load(), phase34(), phase34_process_file(), phase34_process_file_range(), process_multipolygons(), process_multipolygons_member(), process_turn_restrictions(), sig_alrm_do(), and write_item_way_subsection().
long long slice_size =SLIZE_SIZE_DEFAULT_GB*1024ll*1024*1024 |
int slices |
|
static |
Referenced by main(), and progress_memory().
|
static |
Referenced by main(), and progress_time().
int thread_count =8 |
int unknown_country |
Referenced by osm_process_towns(), and parse_option().