PGROUTING  2.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
alpha.c File Reference
#include "./../../common/src/postgres_connection.h"
#include "catalog/pg_type.h"
#include "../../common/src/pgr_types.h"
#include "alpha_driver.h"
#include "../../common/src/debug_macro.h"

Go to the source code of this file.

Classes

struct  vertex_columns
 

Macros

#define TUPLIMIT   1000
 

Typedefs

typedef struct vertex_columns vertex_columns_t
 

Functions

PGDLLEXPORT Datum alphashape (PG_FUNCTION_ARGS)
 
static int compute_alpha_shape (char *sql, float8 alpha, vertex_t **res, size_t *res_count)
 
static void fetch_vertex (HeapTuple *tuple, TupleDesc *tupdesc, vertex_columns_t *vertex_columns, vertex_t *target_vertex)
 
static int fetch_vertices_columns (SPITupleTable *tuptable, vertex_columns_t *vertex_columns)
 
static int finish (int code, int ret)
 
 PG_FUNCTION_INFO_V1 (alphashape)
 

Macro Definition Documentation

#define TUPLIMIT   1000

Definition at line 46 of file alpha.c.

Referenced by compute_alpha_shape().

Typedef Documentation

Function Documentation

PGDLLEXPORT Datum alphashape ( PG_FUNCTION_ARGS  )

Definition at line 218 of file alpha.c.

References compute_alpha_shape(), PGR_DBG, vertex::x, and vertex::y.

static int compute_alpha_shape ( char *  sql,
float8  alpha,
vertex_t **  res,
size_t *  res_count 
)
static
static void fetch_vertex ( HeapTuple *  tuple,
TupleDesc *  tupdesc,
vertex_columns_t vertex_columns,
vertex_t target_vertex 
)
static

Definition at line 96 of file alpha.c.

References vertex::x, vertex_columns::x, vertex::y, and vertex_columns::y.

Referenced by compute_alpha_shape().

static int fetch_vertices_columns ( SPITupleTable *  tuptable,
vertex_columns_t vertex_columns 
)
static

Definition at line 69 of file alpha.c.

References vertex_columns::id, vertex_columns::x, and vertex_columns::y.

Referenced by compute_alpha_shape().

static int finish ( int  code,
int  ret 
)
static

Definition at line 50 of file alpha.c.

Referenced by compute_alpha_shape().

PG_FUNCTION_INFO_V1 ( alphashape  )