PGROUTING  2.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
points_input.c File Reference
#include "./postgres_connection.h"
#include "./debug_macro.h"
#include "./pgr_types.h"
#include "./get_check_data.h"
#include "./points_input.h"

Go to the source code of this file.

Functions

static void fetch_point (HeapTuple *tuple, TupleDesc *tupdesc, Column_info_t info[4], int64_t *default_pid, char default_side, Point_on_edge_t *point)
 
void pgr_get_points (char *points_sql, Point_on_edge_t **points, size_t *total_points)
 pgr_get_points More...
 

Function Documentation

static void fetch_point ( HeapTuple *  tuple,
TupleDesc *  tupdesc,
Column_info_t  info[4],
int64_t *  default_pid,
char  default_side,
Point_on_edge_t point 
)
static
void pgr_get_points ( char *  points_sql,
Point_on_edge_t **  points,
size_t *  total_points 
)

pgr_get_points

For queries of the type:

SELECT pid, edge_id, fraction, [side]
FROM edge_table;
Parameters
[in]points_sql
[out]points
[out]total_points

Definition at line 62 of file points_input.c.

References ANY_INTEGER, ANY_NUMERICAL, CHAR1, Column_info_t::colNumber, Column_info_t::eType, fetch_point(), Column_info_t::name, PGR_DBG, pgr_fetch_column_info(), pgr_SPI_cursor_open(), pgr_SPI_prepare(), Column_info_t::strict, and Column_info_t::type.

Referenced by process().