Exemplo n.º 1
0
int rsreader_force_link2rank (resrc_api_ctx_t *rsapi, machs_t *machs)
{
    int rc = -1;
    resrc_tree_t *rt = NULL;
    resrc_t *r_resrc = resrc_tree_resrc (resrc_tree_root (rsapi));
    if (!find_all_nodes (rsapi, r_resrc, &rt))
        rc = rsreader_set_node_digest (machs, rt);
    if (rt)
        resrc_tree_destroy (rsapi, rt, false, false);

    return rc;
}
Exemplo n.º 2
0
void OutputJunctions(Nodes *nodes,Segments *segments,Ways *ways,Relations *relations,double latmin,double latmax,double lonmin,double lonmax)
{
 /* Use local variables so that the callback doesn't need to pass them backwards and forwards */

 OSMNodes=nodes;
 OSMSegments=segments;
 OSMWays=ways;
 OSMRelations=relations;

 LatMin=latmin;
 LatMax=latmax;
 LonMin=lonmin;
 LonMax=lonmax;

 /* Iterate through the nodes and process them */

 find_all_nodes(nodes,(callback_t)output_junctions);
}