navit  0.5.3-trunk
map.c File Reference
#include <stdio.h>
#include <string.h>
#include "config.h"
#include "debug.h"
#include "plugin.h"
#include "maptype.h"
#include "mg.h"

Data Structures

struct  country_isonum
 

Functions

struct map_privmap_new_mg (struct map_methods *meth, struct attr **attrs, struct callback_list *cbl)
 
int mg_country_from_isonum (int isonum)
 
int mg_country_to_isonum (int country)
 
int mg_country_postal_len (int country)
 
static char * mg_country_postal_prefix (int isonum)
 
static int file_next (struct map_rect_priv *mr)
 
static void map_destroy_mg (struct map_priv *m)
 
struct map_rect_privmap_rect_new_mg (struct map_priv *map, struct map_selection *sel)
 
static struct itemmap_rect_get_item_mg (struct map_rect_priv *mr)
 
struct itemmap_rect_get_item_byid_mg (struct map_rect_priv *mr, int id_hi, int id_lo)
 
void map_rect_destroy_mg (struct map_rect_priv *mr)
 
static char * map_search_mg_convert_special (char *str)
 
static int map_search_setup (struct map_rect_priv *mr)
 
static void map_search_cleanup (struct map_rect_priv *mr)
 
static struct itemmap_search_get_item_mg (struct map_search_priv *ms)
 
static struct map_search_privmap_search_new_mg (struct map_priv *map, struct item *item, struct attr *search, int partial)
 
static void map_search_destroy_mg (struct map_search_priv *ms)
 
void plugin_init (void)
 

Variables

GListmaps
 
static struct country_isonum country_isonums []
 
static int map_id
 
static char * file []
 
struct item_range town_ranges []
 
struct item_range street_ranges []
 
struct item_range poly_ranges []
 
int block_lin_count
 
int block_idx_count
 
int block_active_count
 
int block_mem
 
int block_active_mem
 
static struct map_methods map_methods_mg
 

Function Documentation

◆ file_next()

◆ map_destroy_mg()

static void map_destroy_mg ( struct map_priv m)
static

◆ map_new_mg()

◆ map_rect_destroy_mg()

void map_rect_destroy_mg ( struct map_rect_priv mr)

◆ map_rect_get_item_byid_mg()

◆ map_rect_get_item_mg()

◆ map_rect_new_mg()

◆ map_search_cleanup()

◆ map_search_destroy_mg()

static void map_search_destroy_mg ( struct map_search_priv ms)
static

◆ map_search_get_item_mg()

◆ map_search_mg_convert_special()

static char* map_search_mg_convert_special ( char *  str)
static

References c, dbg, and lvl_debug.

Referenced by map_search_setup().

◆ map_search_new_mg()

◆ map_search_setup()

◆ mg_country_from_isonum()

int mg_country_from_isonum ( int  isonum)

◆ mg_country_postal_len()

int mg_country_postal_len ( int  country)

◆ mg_country_postal_prefix()

static char* mg_country_postal_prefix ( int  isonum)
static

◆ mg_country_to_isonum()

int mg_country_to_isonum ( int  country)

References country_isonums, and country_isonum::isonum.

Referenced by street_attr_get().

◆ plugin_init()

void plugin_init ( void  )

Variable Documentation

◆ block_active_count

◆ block_active_mem

◆ block_idx_count

int block_idx_count

◆ block_lin_count

int block_lin_count

Navit, a modular navigation system. Copyright (C) 2005-2008 Navit Team

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

Referenced by block_next_lin(), map_destroy_mg(), map_rect_get_item_mg(), and map_rect_new_mg().

◆ block_mem

◆ country_isonums

◆ file

char* file[]
static
Initial value:
= {
[file_border_ply]="border.ply",
[file_bridge_ply]="bridge.ply",
[file_build_ply]="build.ply",
[file_golf_ply]="golf.ply",
[file_height_ply]="height.ply",
[file_natpark_ply]="natpark.ply",
[file_nature_ply]="nature.ply",
[file_other_ply]="other.ply",
[file_rail_ply]="rail.ply",
[file_sea_ply]="sea.ply",
[file_street_bti]="street.bti",
[file_street_str]="street.str",
[file_strname_stn]="strname.stn",
[file_town_twn]="town.twn",
[file_tunnel_ply]="tunnel.ply",
[file_water_ply]="water.ply",
[file_woodland_ply]="woodland.ply",
}
Definition: mg.h:242
Definition: mg.h:231
Definition: mg.h:245
Definition: mg.h:243
Definition: mg.h:240
Definition: mg.h:232
Definition: mg.h:239
Definition: mg.h:246
Definition: mg.h:237
Definition: mg.h:236
Definition: mg.h:234
Definition: mg.h:230
Definition: mg.h:241
Definition: mg.h:235
Definition: mg.h:238
Definition: mg.h:244
Definition: mg.h:233

Referenced by attr_func(), config_load_py(), file_create(), file_get_contents(), image_new(), pcoord_func(), request_map_dump(), and template_func().

◆ map_id

int map_id
static

Referenced by map_new_mg().

◆ map_methods_mg

struct map_methods map_methods_mg
static
Initial value:
= {
"iso8859-1",
}
static struct item * map_rect_get_item_mg(struct map_rect_priv *mr)
Definition: map.c:243
void map_rect_destroy_mg(struct map_rect_priv *mr)
Definition: map.c:315
static void map_destroy_mg(struct map_priv *m)
Definition: map.c:209
Definition: projection.h:25
static struct item * map_search_get_item_mg(struct map_search_priv *ms)
Definition: map.c:502
struct item * map_rect_get_item_byid_mg(struct map_rect_priv *mr, int id_hi, int id_lo)
Definition: map.c:291
struct map_rect_priv * map_rect_new_mg(struct map_priv *map, struct map_selection *sel)
Definition: map.c:222
static struct map_search_priv * map_search_new_mg(struct map_priv *map, struct item *item, struct attr *search, int partial)
Definition: map.c:453
static void map_search_destroy_mg(struct map_search_priv *ms)
Definition: map.c:489

Referenced by map_new_mg().

◆ maps

GList* maps

Navit, a modular navigation system. Copyright (C) 2005-2008 Navit Team

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

Referenced by org.navitproject.navit.NavitMapDownloader::getAvailableMaps(), map_new_mg(), map_search_setup(), and map_selection_contains_polygon().

◆ poly_ranges

struct item_range poly_ranges[]
Initial value:
= {
{type_border_country,type_water_line},
{type_street_unkn,type_street_unkn},
{type_area,type_last},
}

◆ street_ranges

struct item_range street_ranges[]
Initial value:
= {
{type_street_nopass,type_street_unkn},
}

◆ town_ranges

struct item_range town_ranges[]
Initial value:
= {
{type_town_label,type_port_label},
}