37 char d_side =
static_cast<char>(tolower(driving_side));
39 || (d_side ==
'l'))) {
49 char **edges_of_points_query,
50 char **edges_no_points_query) {
51 std::ostringstream edges_of_points_sql;
52 std::ostringstream edges_no_points_sql;
54 edges_of_points_sql <<
"WITH "
55 <<
" edges AS (" << edges_sql <<
"), "
56 <<
" points AS (" << points_sql <<
")"
57 <<
" SELECT DISTINCT edges.* FROM edges JOIN points ON (id = edge_id)";
58 *edges_of_points_query =
pgr_msg(edges_of_points_sql.str().c_str());
60 edges_no_points_sql <<
"WITH "
61 <<
" edges AS (" << edges_sql <<
"), "
62 <<
" points AS (" << points_sql <<
")"
65 <<
" WHERE NOT EXISTS (SELECT edge_id FROM points WHERE id = edge_id)";
66 *edges_no_points_query =
pgr_msg(edges_no_points_sql.str().c_str());