52 #ifndef DOXYGEN_SHOULD_SKIP_THIS
55 #define READOSM_DECLARE __declspec(dllexport)
56 #define READOSM_PRIVATE
58 #define READOSM_DECLARE extern
59 #define READOSM_PRIVATE
62 #define READOSM_DECLARE __attribute__ ((visibility("default")))
63 #define READOSM_PRIVATE __attribute__ ((visibility("hidden")))
68 #ifndef DOXYGEN_SHOULD_SKIP_THIS
79 #define READOSM_UNDEFINED -1234567890
81 #define READOSM_MEMBER_NODE 7361
83 #define READOSM_MEMBER_WAY 6731
85 #define READOSM_MEMBER_RELATION 3671
89 #define READOSM_INVALID_SUFFIX -1
90 #define READOSM_FILE_NOT_FOUND -2
92 #define READOSM_NULL_HANDLE -3
93 #define READOSM_INVALID_HANDLE -4
94 #define READOSM_INSUFFICIENT_MEMORY -5
96 #define READOSM_CREATE_XML_PARSER_ERROR -6
97 #define READOSM_READ_ERROR -7
98 #define READOSM_XML_ERROR -8
99 #define READOSM_INVALID_PBF_HEADER -9
100 #define READOSM_UNZIP_ERROR -10
101 #define READOSM_ABORT -11
109 struct readosm_tag_struct
267 const void **osm_handle);
301 const void *user_data,
const char * user
name of the User defining this RELATION
Definition: readosm.h:226
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.
const readosm_member * members
array of MEMBER objects (may be NULL)
Definition: readosm.h:230
const int uid
corresponding numeric UserID
Definition: readosm.h:227
const int node_ref_count
number of referenced NODE-IDs (may be zero)
Definition: readosm.h:175
const int tag_count
number of associated TAGs (may be zero)
Definition: readosm.h:231
const int version
object version
Definition: readosm.h:224
const char * timestamp
when this NODE was defined
Definition: readosm.h:143
READOSM_DECLARE const char * readosm_expat_version(void)
Return the current libexpat version used by ReadOSM.
a struct representing a key:value pair, and wrapping an XML fragment like the following: ...
Definition: readosm.h:111
int(* readosm_relation_callback)(const void *user_data, const readosm_relation *relation)
callback function handling RELATION objects
Definition: readosm.h:251
READOSM_DECLARE const char * readosm_zlib_version(void)
Return the current zlib version used by ReadOSM.
const int uid
corresponding numeric UserID
Definition: readosm.h:142
const long long changeset
ChangeSet ID.
Definition: readosm.h:171
const char * user
name of the User defining this NODE
Definition: readosm.h:141
const char * role
intended role for this reference
Definition: readosm.h:199
const long long id
WAY-ID (expected to be a unique value)
Definition: readosm.h:169
const int member_count
number of associated MEMBERs (may be zero)
Definition: readosm.h:229
int(* readosm_node_callback)(const void *user_data, const readosm_node *node)
callback function handling NODE objects
Definition: readosm.h:243
const int tag_count
number of associated TAGs (may be zero)
Definition: readosm.h:144
const readosm_tag * tags
array of TAG objects (may be NULL)
Definition: readosm.h:178
const readosm_tag * tags
array of TAG objects (may be NULL)
Definition: readosm.h:232
const long long id
NODE-ID (expected to be a unique value)
Definition: readosm.h:136
const char * user
name of the User defining this WAY
Definition: readosm.h:172
const char * timestamp
when this WAY was defined
Definition: readosm.h:174
const double latitude
geographic latitude
Definition: readosm.h:137
const int version
object version
Definition: readosm.h:139
const char * timestamp
when this RELATION was defined
Definition: readosm.h:228
const long long id
ID-value identifying the referenced object.
Definition: readosm.h:198
a struct representing a NODE object, and wrapping a complex XML fragment like the following: ...
Definition: readosm.h:134
const int tag_count
number of associated TAGs (may be zero)
Definition: readosm.h:177
const double longitude
geographic longitude
Definition: readosm.h:138
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.
const long long id
RELATION-ID (expected to be a unique value)
Definition: readosm.h:223
a struct representing a WAY object, and wrapping a complex XML fragment like the following: ...
Definition: readosm.h:167
const long long changeset
ChangeSet ID.
Definition: readosm.h:140
const int member_type
can be one of: READOSM_MEMBER_NODE, READOSM_MEMBER_WAY or READOSM_MEMBER_RELATION ...
Definition: readosm.h:197
const int uid
corresponding numeric UserID
Definition: readosm.h:173
int(* readosm_way_callback)(const void *user_data, const readosm_way *way)
callback function handling WAY objects
Definition: readosm.h:247
const long long * node_refs
array of NODE-IDs (may be NULL)
Definition: readosm.h:176
const int version
object version
Definition: readosm.h:170
const long long changeset
ChangeSet ID.
Definition: readosm.h:225
READOSM_DECLARE const char * readosm_version(void)
Return the current ReadOSM version.
a struct representing a RELATION object, and wrapping a complex XML fragment like the following: ...
Definition: readosm.h:221
a struct representing a RELATION-MEMBER, and wrapping an XML fragment like the following: ...
Definition: readosm.h:194
const readosm_tag * tags
array of TAG objects (may be NULL)
Definition: readosm.h:145