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()

static struct item * map_search_get_item_mg ( struct map_search_priv ms)
static

◆ 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  )

References map_new_mg().

Variable Documentation

◆ block_active_count

int block_active_count

◆ block_active_mem

int block_active_mem

◆ block_idx_count

int block_idx_count

◆ block_lin_count

int block_lin_count
extern

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_rect_get_item_mg(), and map_rect_new_mg().

◆ block_mem

int 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",
}
@ file_border_ply
Definition: mg.h:230
@ file_street_bti
Definition: mg.h:240
@ file_build_ply
Definition: mg.h:232
@ file_tunnel_ply
Definition: mg.h:244
@ file_natpark_ply
Definition: mg.h:235
@ file_water_ply
Definition: mg.h:245
@ file_rail_ply
Definition: mg.h:238
@ file_town_twn
Definition: mg.h:243
@ file_nature_ply
Definition: mg.h:236
@ file_sea_ply
Definition: mg.h:239
@ file_street_str
Definition: mg.h:241
@ file_golf_ply
Definition: mg.h:233
@ file_bridge_ply
Definition: mg.h:231
@ file_height_ply
Definition: mg.h:234
@ file_woodland_ply
Definition: mg.h:246
@ file_strname_stn
Definition: mg.h:242
@ file_other_ply
Definition: mg.h:237

Referenced by attr_func(), config_load_py(), file_create(), file_get_contents(), image_new(), org.navitproject.navit.FileBrowserActivity.Item::Item(), map_rect_new_shapefile(), 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",
}
struct map_rect_priv * map_rect_new_mg(struct map_priv *map, struct map_selection *sel)
Definition: map.c:222
static void map_destroy_mg(struct map_priv *m)
Definition: map.c:209
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
static struct item * map_rect_get_item_mg(struct map_rect_priv *mr)
Definition: map.c:243
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
void map_rect_destroy_mg(struct map_rect_priv *mr)
Definition: map.c:315
static void map_search_destroy_mg(struct map_search_priv *ms)
Definition: map.c:489
@ projection_mg
Definition: projection.h:25

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(), navit_destroy(), and phase1_map().

◆ 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},
}

Referenced by file_next().

◆ street_ranges

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

Referenced by file_next().

◆ town_ranges

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

Referenced by file_next().