navit
0.5.3-trunk
|
#include <stdlib.h>
#include <glib.h>
#include <assert.h>
#include <string.h>
#include <signal.h>
#include <stdio.h>
#include <math.h>
#include <getopt.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <zlib.h>
#include "file.h"
#include "item.h"
#include "map.h"
#include "main.h"
#include "config.h"
#include "zipfile.h"
#include "linguistics.h"
#include "plugin.h"
#include "maptool.h"
Macros | |
#define | _FILE_OFFSET_BITS 64 |
#define | _LARGEFILE_SOURCE |
#define | _LARGEFILE64_SOURCE |
#define | phase1_coord_max 16384 |
Functions | |
void | bbox_extend (struct coord *c, struct rect *r) |
void | bbox (struct coord *c, int count, struct rect *r) |
int | contains_bbox (int xl, int yl, int xh, int yh, struct rect *r) |
int | bbox_contains_coord (struct rect *r, struct coord *c) |
int | bbox_contains_bbox (struct rect *out, struct rect *in) |
long long | bbox_area (struct rect const *r) |
void | phase1_map (GList *maps, FILE *out_ways, FILE *out_nodes) |
int | item_order_by_type (enum item_type type) |
static int | filter_unknown (struct item_bin *ib) |
static void | phase34_process_file (struct tile_info *info, FILE *in, FILE *reference) |
static void | phase34_process_file_range (struct tile_info *info, FILE *in, FILE *reference) |
static int | phase34 (struct tile_info *info, struct zip_info *zip_info, FILE **in, FILE **reference, int in_count, int with_range) |
void | dump (FILE *in) |
int | phase4 (FILE **in, int in_count, int with_range, char *suffix, FILE *tilesdir_out, struct zip_info *zip_info) |
static int | process_slice (FILE **in, FILE **reference, int in_count, int with_range, long long size, char *suffix, struct zip_info *zip_info) |
int | phase5 (FILE **in, FILE **references, int in_count, int with_range, char *suffix, struct zip_info *zip_info) |
void | process_binfile (FILE *in, FILE *out) |
void | add_aux_tiles (char *name, struct zip_info *info) |
Variables | |
struct rect | world_bbox |
#define _FILE_OFFSET_BITS 64 |
#define _LARGEFILE64_SOURCE |
#define _LARGEFILE_SOURCE |
#define phase1_coord_max 16384 |
void add_aux_tiles | ( | char * | name, |
struct zip_info * | info | ||
) |
References add_aux_tile().
Referenced by maptool_assemble_map().
References bbox_extend(), c, and rect::h.
Referenced by font_freetype_get_text_bbox(), gui_internal_cmd_map_download(), item_bin_write_clipped(), itembin_disassemble(), osd_cmd_interface_draw(), osd_compass_draw(), osd_route_guard_draw(), osd_scale_draw(), osd_speed_cam_draw(), osd_speed_warner_draw(), osd_stopwatch_draw(), process_multipolygons_finish(), and tile_write_item_minmax().
long long bbox_area | ( | struct rect const * | r | ) |
References rect::h, coord::x, and coord::y.
Referenced by boundary_find_matches().
References rect::h, coord::x, and coord::y.
Referenced by process_boundaries_insert().
References rect::h, coord::x, and coord::y.
Referenced by boundary_find_matches(), and process_multipolygons_finish().
References rect::h, coord::x, and coord::y.
Referenced by bbox(), item_bin_sort_file(), item_bin_write_match(), load_countries(), process_boundaries_finish(), and process_turn_restrictions_member().
int contains_bbox | ( | int | xl, |
int | yl, | ||
int | xh, | ||
int | yh, | ||
struct rect * | r | ||
) |
void dump | ( | FILE * | in | ) |
References dump_itembin(), filter_unknown(), and read_item().
|
inlinestatic |
References ignore_unknown, and item_bin::type.
Referenced by dump(), phase34_process_file(), and phase34_process_file_range().
int item_order_by_type | ( | enum item_type | type | ) |
References experimental, and max.
Referenced by phase34_process_file(), and process_turn_restrictions_member().
void phase1_map | ( | GList * | maps, |
FILE * | out_ways, | ||
FILE * | out_nodes | ||
) |
References init_item(), item, item_attr_get(), item_bin_add_attr(), item_bin_add_coord(), item_bin_write(), item_coord_get(), map_convert_free(), map_convert_string(), map_rect_destroy(), map_rect_get_item(), map_rect_new(), attr::str, item::type, attr::type, and attr::u.
Referenced by osm_read_input_data().
|
static |
References bytes_read, merge_tiles(), phase34_process_file(), phase34_process_file_range(), processed_nodes, processed_nodes_out, processed_relations, processed_tiles, processed_ways, sig_alrm(), sig_alrm_end(), tile_hash, tile_info::tilesdir_out, tile_info::write, and write_tilesdir().
Referenced by phase4(), and process_slice().
|
static |
References filter_unknown(), item_bin_get_attr_bin(), item_order_by_type(), max, processed_nodes, processed_ways, read_item(), tile_write_item_minmax(), and item_bin::type.
Referenced by phase34().
|
static |
References filter_unknown(), max, processed_nodes, processed_ways, read_item_range(), tile_write_item_minmax(), and item_bin::type.
Referenced by phase34().
int phase4 | ( | FILE ** | in, |
int | in_count, | ||
int | with_range, | ||
char * | suffix, | ||
FILE * | tilesdir_out, | ||
struct zip_info * | zip_info | ||
) |
References tile_info::maxlen, phase34(), tile_info::suffix, suffix, tile_info::tiles_list, tile_info::tilesdir_out, and tile_info::write.
Referenced by maptool_generate_tiles().
int phase5 | ( | FILE ** | in, |
FILE ** | references, | ||
int | in_count, | ||
int | with_range, | ||
char * | suffix, | ||
struct zip_info * | zip_info | ||
) |
References create_tile_hash(), LONGLONG_FMT, tile_head::next, tile_head::process, process_slice(), size, slice_size, slices, tile_head_root, tile_head::total_size, zip_get_zipnum(), and zip_set_zipnum().
Referenced by maptool_assemble_map().
void process_binfile | ( | FILE * | in, |
FILE * | out | ||
) |
References item_bin_write(), and read_item().
Referenced by main().
|
static |
References dbg_assert, exit, tile_info::maxlen, tile_head::name, tile_head::next, phase34(), tile_head::process, tile_info::suffix, suffix, tile_head_root, tile_info::tiles_list, tile_info::tilesdir_out, tile_head::total_size, tile_head::total_size_used, tile_info::write, write_zipmember(), tile_head::zip_data, zip_get_index(), and zip_get_maxnamelen().
Referenced by phase5().
struct rect world_bbox |
Referenced by sort_countries(), tile(), tile_bbox(), and write_tilesdir().