|  |  |  | libmemphis Reference Manual |  | 
|---|---|---|---|---|
| Top | Description | Object Hierarchy | ||||
MemphisMap; MemphisMap* memphis_map_new (); void memphis_map_free (MemphisMap *map); void memphis_map_load_from_file (MemphisMap *map,const gchar *filename,GError **error); void memphis_map_load_from_data (MemphisMap *map,const gchar *data,guint size,GError **error); void memphis_map_get_bounding_box (MemphisMap *map,gdouble *minlat,gdouble *minlon,gdouble *maxlat,gdouble *maxlon);
Stores an area with OSM map data. The data can be loaded from an OSM XML file or a character array with XML data.
Reference: http://wiki.openstreetmap.org/wiki/.osm
MemphisMap* memphis_map_new ();
| Returns : | a new MemphisMap without any data. | 
Since 0.1
void                memphis_map_free                    (MemphisMap *map);
Frees the memory of a MemphisMap.
| 
 | a MemphisMap | 
Since 0.1
void memphis_map_load_from_file (MemphisMap *map,const gchar *filename,GError **error);
Load map data from an OSM XML file.
| 
 | a MemphisMap | 
| 
 | a path to a OSM map file | 
| 
 | a pointer to a GError or NULL | 
Since 0.2
void memphis_map_load_from_data (MemphisMap *map,const gchar *data,guint size,GError **error);
Load map data from an OSM XML file.
| 
 | a MemphisMap | 
| 
 | a character array with OSM data | 
| 
 | the size of the array | 
| 
 | a pointer to a GError or NULL | 
Since 0.2
void memphis_map_get_bounding_box (MemphisMap *map,gdouble *minlat,gdouble *minlon,gdouble *maxlat,gdouble *maxlon);
Get the exent of the bounding box that contains all map data.
| 
 | a MemphisMap | 
| 
 | the minimum latitude. [out] | 
| 
 | the minimum longitude. [out] | 
| 
 | the maximum latitude. [out] | 
| 
 | the maximum longitude. [out] | 
Since 0.1