@@ -42,8 +42,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
4242#include " cpp_common/linear_directed_graph.h"
4343
4444void get_turn_penalty_postgres_result (
45- std::vector< Line_graph_rt > edge_result,
46- Line_graph_rt **return_tuples,
45+ std::vector< Line_graph_full_rt > edge_result,
46+ Line_graph_full_rt **return_tuples,
4747 size_t &sequence) {
4848 (*return_tuples) = pgr_alloc (
4949 static_cast <int >(edge_result.size ()),
@@ -55,7 +55,7 @@ void get_turn_penalty_postgres_result(
5555 edge.source ,
5656 edge.target ,
5757 edge.cost ,
58- edge.reverse_cost };
58+ edge.edge };
5959 sequence++;
6060 }
6161}
6464do_pgr_lineGraphFull (
6565 pgr_edge_t *data_edges,
6666 size_t total_edges,
67- Line_graph_rt **return_tuples,
67+ Line_graph_full_rt **return_tuples,
6868 size_t *return_count,
6969 char ** log_msg,
7070 char ** notice_msg,
@@ -80,7 +80,7 @@ do_pgr_lineGraphFull(
8080 pgassert (*return_count == 0 );
8181 pgassert (total_edges != 0 );
8282
83- std::vector< Line_graph_rt > results;
83+ std::vector< Line_graph_full_rt > results;
8484 graphType gType = DIRECTED;
8585
8686 pgrouting::DirectedGraph digraph (gType );
@@ -94,7 +94,7 @@ do_pgr_lineGraphFull(
9494 pgrouting::Line_vertex,
9595 pgrouting::Basic_edge > line (digraph);
9696
97- std::vector< Line_graph_rt > line_graph_edges;
97+ std::vector< Line_graph_full_rt > line_graph_edges;
9898 line_graph_edges = line.get_postgres_results_directed ();
9999
100100 auto count = line_graph_edges.size ();
0 commit comments