Navit SVN
Public Attributes

tile Struct Reference

A map tile, a rectangular region of the world. More...

List of all members.

Public Attributes

int * start
 Memory address of the buffer containing the tile data (the actual map data).
int * end
 First memory address not belonging to the tile data.
int * pos
 Pointer to current position (start of current item) inside the tile data.
int * pos_coord_start
 Pointer to the first element inside the current item that is a coordinate.
int * pos_coord
 Current position in the coordinates region of the current item.
int * pos_attr_start
 Pointer to the first attr data structure of the current item.
int * pos_attr
 Current position in the attr region of the current item.
int * pos_next
 Pointer to the next item (the item which follows the "current item" as indicated by *pos).
struct filefi
 The file from which this tile was loaded.
int zipfile_num
int mode

Detailed Description

A map tile, a rectangular region of the world.

Represents a "map tile", a rectangular region of the world. The binfile format divides the world into tiles of different sizes for easy handling. A binfile is a ZIP archive; each member file (with the exception of index files) represents one tile. The data from a tile file is read into memory and used directly as the tile data of this struct.

See the Navit wiki for details on the binfile format:

http://wiki.navit-project.org/index.php/Navit%27s_binary_map_driver

Note that this tile struct also maintains pointers to several current positions inside the tile. These are not part of the actual tile data, but are used for working with the data.


Member Data Documentation

int* tile::end

First memory address not belonging to the tile data.

Thus tile->end - tile->start represents the size of the tile data in multiples of 4 Bytes.

Pointer to the first element inside the current item that is a coordinate.

That is the first position after the header of an item. The header holds 3 entries each 32bit wide integers: header[0] holds the size of the whole item (excluding this size field) header[1] holds the type of the item header[2] holds the size of the coordinates in the tile


The documentation for this struct was generated from the following file: