PGROUTING  2.6-dev
edges_input.h File Reference
Include dependency graph for edges_input.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void pgr_get_basic_edges (char *sql, pgr_basic_edge_t **edges, size_t *total_edges)
 read basic edges More...
 
void pgr_get_edges (char *edges_sql, pgr_edge_t **edges, size_t *total_edges)
 basic edge_sql More...
 
void pgr_get_edges_no_id (char *edges_sql, pgr_edge_t **edges, size_t *total_edges)
 edges_sql without id parameter More...
 
void pgr_get_edges_reversed (char *edges_sql, pgr_edge_t **edges, size_t *total_edges)
 
void pgr_get_edges_xy (char *edges_sql, Pgr_edge_xy_t **edges, size_t *total_edges)
 Edges with x, y vertices values. More...
 
void pgr_get_edges_xy_reversed (char *edges_sql, Pgr_edge_xy_t **edges, size_t *total_edges)
 for many to 1 on aStar More...
 
void pgr_get_flow_edges (char *sql, pgr_edge_t **edges, size_t *total_edges)
 read edges for flow More...
 

Function Documentation

void pgr_get_basic_edges ( char *  sql,
pgr_basic_edge_t **  edges,
size_t *  total_edges 
)

read basic edges

For queries of the type:

SELECT id, source, target, going, [coming]
FROM edge_table;
Parameters
[in]sql
[out]edges
[out]total_edges

Definition at line 600 of file edges_input.c.

References get_edges_basic().

Referenced by process().

603  {
604  bool ignore_id = false;
605  get_edges_basic(sql, edges, total_edges, ignore_id);
606 }
static void get_edges_basic(char *sql, pgr_basic_edge_t **edges, size_t *totalTuples, bool ignore_id)
Definition: edges_input.c:438

Here is the call graph for this function:

Here is the caller graph for this function:

void pgr_get_edges ( char *  edges_sql,
pgr_edge_t **  edges,
size_t *  total_edges 
)

basic edge_sql

For queries of the type:

SELECT id, source, target, cost, [reverse_cost]
FROM edge_table;
Parameters
[in]edges_sql
[out]edges
[out]total_edges

Definition at line 545 of file edges_input.c.

References get_edges_5_columns().

Referenced by compute(), compute_trsp(), and process().

548  {
549  bool ignore_id = false;
550  bool normal = true;
551  get_edges_5_columns(edges_sql, edges, total_edges, ignore_id, normal);
552 }
static void get_edges_5_columns(char *sql, pgr_edge_t **edges, size_t *totalTuples, bool ignore_id, bool normal)
Definition: edges_input.c:246

Here is the call graph for this function:

Here is the caller graph for this function:

void pgr_get_edges_no_id ( char *  edges_sql,
pgr_edge_t **  edges,
size_t *  total_edges 
)

edges_sql without id parameter

SELECT source, target, cost, [reverse_cost]
FROM edge_table;

Currently used in: allpairs

Parameters
[in]edges_sql
[out]edges
[out]total_edges

Definition at line 567 of file edges_input.c.

References get_edges_5_columns().

Referenced by process().

570  {
571  bool ignore_id = true;
572  bool normal = true;
573  get_edges_5_columns(edges_sql, edges, total_edges, ignore_id, normal);
574 }
static void get_edges_5_columns(char *sql, pgr_edge_t **edges, size_t *totalTuples, bool ignore_id, bool normal)
Definition: edges_input.c:246

Here is the call graph for this function:

Here is the caller graph for this function:

void pgr_get_edges_reversed ( char *  edges_sql,
pgr_edge_t **  edges,
size_t *  total_edges 
)

Definition at line 556 of file edges_input.c.

References get_edges_5_columns().

Referenced by process().

559  {
560  bool ignore_id = false;
561  bool normal = false;
562  get_edges_5_columns(edges_sql, edges, total_edges, ignore_id, normal);
563 }
static void get_edges_5_columns(char *sql, pgr_edge_t **edges, size_t *totalTuples, bool ignore_id, bool normal)
Definition: edges_input.c:246

Here is the call graph for this function:

Here is the caller graph for this function:

void pgr_get_edges_xy ( char *  edges_sql,
Pgr_edge_xy_t **  edges,
size_t *  total_edges 
)

Edges with x, y vertices values.

For queries of the type:

SELECT id, source, target, cost, [reverse_cost], x1, y1, x2, y2
FROM edge_table;
Parameters
[in]edges_sql
[out]edges
[out]total_edges

Definition at line 578 of file edges_input.c.

References get_edges_9_columns().

Referenced by process().

581  {
582  get_edges_9_columns(edges_sql, edges, total_edges, true);
583 }
static void get_edges_9_columns(char *sql, Pgr_edge_xy_t **edges, size_t *total_edges, bool normal)
Definition: edges_input.c:139

Here is the call graph for this function:

Here is the caller graph for this function:

void pgr_get_edges_xy_reversed ( char *  edges_sql,
Pgr_edge_xy_t **  edges,
size_t *  total_edges 
)

for many to 1 on aStar

Used internally

Transforms queries of the type:

SELECT id, source, target, cost, [reverse_cost], x1, y1, x2, y2
FROM edge_table;

to

SELECT id, target, source, cost, [reverse_cost], x1, y1, x2, y2
FROM edge_table;
Parameters
[in]edges_sql
[out]edges
[out]total_edges

Definition at line 591 of file edges_input.c.

References get_edges_9_columns().

Referenced by process().

594  {
595  get_edges_9_columns(edges_sql, edges, total_edges, false);
596 }
static void get_edges_9_columns(char *sql, Pgr_edge_xy_t **edges, size_t *total_edges, bool normal)
Definition: edges_input.c:139

Here is the call graph for this function:

Here is the caller graph for this function:

void pgr_get_flow_edges ( char *  sql,
pgr_edge_t **  edges,
size_t *  total_edges 
)

read edges for flow

Edges:

bigint id, bigint source, bigint target, bigint capacity, bigint reverse_capacity

Parameters
[in]sql
[out]edges
[out]total_edges

Definition at line 535 of file edges_input.c.

References get_edges_flow().

Referenced by process().

538  {
539  bool ignore_id = false;
540  get_edges_flow(sql, edges, total_edges, ignore_id);
541 }
static void get_edges_flow(char *sql, pgr_edge_t **edges, size_t *totalTuples, bool ignore_id)
Definition: edges_input.c:344

Here is the call graph for this function:

Here is the caller graph for this function: