PostGIS  2.4.9dev-r@@SVN_REVISION@@
cu_algorithm.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "CUnit/Basic.h"
#include "liblwgeom_internal.h"
#include "cu_tester.h"
Include dependency graph for cu_algorithm.c:

Go to the source code of this file.

Macros

#define setpoint(p, x1, y1)   {(p).x = (x1); (p).y = (y1);}
 

Functions

static int init_cg_suite (void)
 
static int clean_cg_suite (void)
 
static void test_lw_segment_side (void)
 
static void test_lw_arc_center (void)
 
static void test_lw_segment_intersects (void)
 
static void test_lwline_crossing_short_lines (void)
 
static void test_lwline_crossing_long_lines (void)
 
static void test_lwline_crossing_bugs (void)
 
static void test_lwpoint_set_ordinate (void)
 
static void test_lwpoint_get_ordinate (void)
 
static void test_point_interpolate (void)
 
static void test_lwline_clip (void)
 
static void test_lwmline_clip (void)
 
static void test_lwline_clip_big (void)
 
static void test_geohash_precision (void)
 
static void test_geohash_point (void)
 
static void test_geohash (void)
 
static void test_isclosed (void)
 
static void test_geohash_point_as_int (void)
 
static void test_geohash_bbox (void)
 
static void test_lwgeom_simplify (void)
 
static void do_median_dims_check (char *wkt, int expected_dims)
 
static void test_median_handles_3d_correctly (void)
 
static void do_median_test (char *input, char *expected)
 
static void test_median_robustness (void)
 
static void test_point_density (void)
 
static void test_lwpoly_construct_circle (void)
 
static void test_kmeans (void)
 
void algorithms_suite_setup (void)
 

Variables

POINTARRAYpa21 = NULL
 
POINTARRAYpa22 = NULL
 
LWLINEl21 = NULL
 
LWLINEl22 = NULL
 
LWGEOM_PARSER_RESULT parse_result