Top | ![]() |
![]() |
![]() |
![]() |
MemphisMap * | memphis_map_new () |
void | memphis_map_free () |
void | memphis_map_load_from_file () |
void | memphis_map_load_from_data () |
void | memphis_map_get_bounding_box () |
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
void
memphis_map_free (MemphisMap *map
);
Frees the memory of 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.
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.
map |
||
data |
a character array with OSM data |
|
size |
the size of the array |
|
error |
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.
map |
||
minlat |
the minimum latitude. |
[out] |
minlon |
the minimum longitude. |
[out] |
maxlat |
the maximum latitude. |
[out] |
maxlon |
the maximum longitude. |
[out] |
Since: 0.1