|
readosm 1.1.0a
|
Function declarations and constants for ReadOSM library. More...
Go to the source code of this file.
Data Structures | |
| struct | readosm_tag_struct |
| struct | readosm_node_struct |
| struct | readosm_way_struct |
| struct | readosm_member_struct |
| struct | readosm_relation_struct |
Typedefs | |
| typedef struct readosm_tag_struct | readosm_tag |
| Typedef for TAG structure. | |
| typedef struct readosm_node_struct | readosm_node |
| Typedef for NODE structure. | |
| typedef struct readosm_way_struct | readosm_way |
| Typedef for WAY structure. | |
| typedef struct readosm_member_struct | readosm_member |
| Typedef for MEMBER structure. | |
| typedef struct readosm_relation_struct | readosm_relation |
| Typedef for RELATION structure. | |
| typedef int(* | readosm_node_callback) (const void *user_data, const readosm_node *node) |
| callback function handling NODE objects | |
| typedef int(* | readosm_way_callback) (const void *user_data, const readosm_way *way) |
| callback function handling WAY objects | |
| typedef int(* | readosm_relation_callback) (const void *user_data, const readosm_relation *relation) |
| callback function handling RELATION objects | |
Functions | |
| READOSM_DECLARE int | readosm_open (const char *path, const void **osm_handle) |
| Open the .osm or .pbf file, preparing for future functions. | |
| READOSM_DECLARE int | readosm_close (const void *osm_handle) |
| Close the .osm or .pbf file and release any allocated resource. | |
| READOSM_DECLARE int | readosm_parse (const void *osm_handle, const void *user_data, readosm_node_callback node_fnct, readosm_way_callback way_fnct, readosm_relation_callback relation_fnct) |
| Close the .osm or .pbf file and release any allocated resource. | |
| READOSM_DECLARE const char * | readosm_version (void) |
| Return the current ReadOSM version. | |
| READOSM_DECLARE const char * | readosm_expat_version (void) |
| Return the current libexpat version used by ReadOSM. | |
| READOSM_DECLARE const char * | readosm_zlib_version (void) |
| Return the current zlib version used by ReadOSM. | |
Function declarations and constants for ReadOSM library.
| typedef struct readosm_member_struct readosm_member |
Typedef for MEMBER structure.
| typedef struct readosm_node_struct readosm_node |
Typedef for NODE structure.
| typedef struct readosm_relation_struct readosm_relation |
Typedef for RELATION structure.
| typedef struct readosm_tag_struct readosm_tag |
Typedef for TAG structure.
| typedef struct readosm_way_struct readosm_way |
Typedef for WAY structure.
| READOSM_DECLARE int readosm_close | ( | const void * | osm_handle | ) |
Close the .osm or .pbf file and release any allocated resource.
| osm_handle | the handle previously returned by readosm_open() |
| READOSM_DECLARE const char * readosm_expat_version | ( | void | ) |
Return the current libexpat version used by ReadOSM.
| READOSM_DECLARE int readosm_open | ( | const char * | path, |
| const void ** | osm_handle | ||
| ) |
Open the .osm or .pbf file, preparing for future functions.
| path | full or relative pathname of the input file. |
| osm_handle | an opaque reference (handle) to be used in each subsequent function (return value). |
| READOSM_DECLARE int readosm_parse | ( | const void * | osm_handle, |
| const void * | user_data, | ||
| readosm_node_callback | node_fnct, | ||
| readosm_way_callback | way_fnct, | ||
| readosm_relation_callback | relation_fnct | ||
| ) |
Close the .osm or .pbf file and release any allocated resource.
| osm_handle | the handle previously returned by readosm_open() |
| user_data | pointer to some user-supplied data struct |
| node_fnct | pointer to callback function intended to consume NODE objects (may be NULL if processing NODEs is not an interesting option) |
| way_fnct | pointer to callback function intended to consume WAY objects (may be NULL if processing WAYs is not an interesting option) |
| relation_fnct | pointer to callback function intended to consume RELATION objects (may be NULL if processing RELATIONs is not an interesting option) |
| READOSM_DECLARE const char * readosm_version | ( | void | ) |
Return the current ReadOSM version.
| READOSM_DECLARE const char * readosm_zlib_version | ( | void | ) |
Return the current zlib version used by ReadOSM.