FortranGIS Version 3.0

◆ readosm_parse_f()

integer(kind=c_int) function readosm_parse_f ( type(c_ptr), value osm_handle,
type(c_ptr), value user_data,
external integer(kind=c_int) function(type(c_ptr), value user_data, type(readosm_node) node), optional node_fnct,
external integer(kind=c_int) function(type(c_ptr), value user_data, type(readosm_way) way), optional way_fnct,
external integer(kind=c_int) function(type(c_ptr), value user_data, type(readosm_relation) relation), optional relation_fnct )

Parse the corresponding file calling the selected callbacks for every entity encountered.

This is the Fortran-friendly interface where callback functions are optional arguments (thus the keyword form is preferred if any of them is missing) and represent interfaced Fortran FUNCTIONS.

Returns
READOSM_OK will be returned on success, otherwise any appropriate error code on failure.
Parameters
osm_handlethe handle previously returned by readosm_open()
user_datauser_data pointer to some user-supplied data struct

callback function intended to consume WAY objects (may be NULL if processing WAYs is not an interesting option)

callback function intended to consume RELATION objects (may be NULL if processing RELATIONs is not an interesting option)

Definition at line 557 of file readosm.F90.