PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ basic_test()

static void basic_test ( void  )
static

Definition at line 42 of file cu_minimum_bounding_circle.c.

43 {
44  uint32_t i;
45 
46  char* inputs[] =
47  {
48  "POLYGON((26426 65078,26531 65242,26075 65136,26096 65427,26426 65078))",
49  "POINT (17 253)",
50  "TRIANGLE ((0 0, 10 0, 10 10, 0 0))",
51  "LINESTRING (17 253, -44 28, 33 11, 26 44)",
52  "MULTIPOINT ((0 0), (0 0), (0 0), (0 0))",
53  "POLYGON ((0 0, 1 0, 1 1, 0 1, 0 0))",
54  "LINESTRING (-48546889 37039202, -37039202 -48546889)"
55  };
56 
57  for (i = 0; i < sizeof(inputs)/sizeof(LWGEOM*); i++)
58  {
60  mbc_test(input);
61  lwgeom_free(input);
62  }
63 
64 }
char * inputs[]
Definition: cu_iterator.c:17
static void mbc_test(LWGEOM *g)
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1144
#define LW_PARSER_CHECK_NONE
Definition: liblwgeom.h:2005
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
Definition: lwin_wkt.c:904
unsigned int uint32_t
Definition: uthash.h:78

References inputs, LW_PARSER_CHECK_NONE, lwgeom_free(), lwgeom_from_wkt(), and mbc_test().

Referenced by minimum_bounding_circle_suite_setup().

Here is the call graph for this function:
Here is the caller graph for this function: