PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ dbscan_test_3612c()

static void dbscan_test_3612c ( void  )
static

Definition at line 351 of file cu_geos_cluster.c.

References do_dbscan_test(), dbscan_test_info::eps, dbscan_test_info::expected_ids, dbscan_test_info::expected_in_cluster, geos_cluster_suite_setup(), dbscan_test_info::min_points, dbscan_test_info::num_geoms, and dbscan_test_info::wkt_inputs.

Referenced by geos_cluster_suite_setup().

352 {
353  struct dbscan_test_info test;
354  char* wkt_inputs[] = { "POLYGONM((-71.1319 42.2503 1,-71.132 42.2502 3,-71.1323 42.2504 -2,-71.1322 42.2505 1,-71.1319 42.2503 0))",
355  "POLYGONM((-71.1319 42.2512 0,-71.1318 42.2511 20,-71.1317 42.2511 -20,-71.1317 42.251 5,-71.1317 42.2509 4,-71.132 42.2511 6,-71.1319 42.2512 30))" };
356  test.eps = 20.1;
357  test.min_points = 5;
358  uint32_t expected_ids[] = { rand(), rand() };
359  int expected_in_cluster[] = { 0, 0 };
360  test.num_geoms = sizeof(wkt_inputs) / sizeof(char*);
361 
362  test.expected_ids = expected_ids;
363  test.expected_in_cluster = expected_in_cluster;
364  test.wkt_inputs = wkt_inputs;
365  do_dbscan_test(test);
366 }
static void do_dbscan_test(struct dbscan_test_info test)
unsigned int uint32_t
Definition: uthash.h:78
uint32_t * expected_ids
Here is the call graph for this function:
Here is the caller graph for this function: